Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] How to convert string to int?

 
  • 0 Vote(s) - 0 Average
Pawn How to convert string to int?
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#5
2021-07-05, 04:36 AM
(2021-07-04, 07:52 PM)Y_Less Wrote: sscanf is better, it has better error returns and deals with separators.
Good, you could create a (where not to) use sscanf tutorial tho, it's really not needed when only a single number is in question.. (simply isnumeric > value = strval)
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
« Next Oldest | Next Newest »



Messages In This Thread
How to convert string to int? - by ViktorNas - 2021-07-04, 02:10 AM
RE: How to convert string to int? - by Radical - 2021-07-04, 04:14 AM
RE: How to convert string to int? - by ViktorNas - 2021-07-04, 07:21 PM
RE: How to convert string to int? - by Y_Less - 2021-07-04, 07:52 PM
RE: How to convert string to int? - by Pinch - 2021-07-05, 04:36 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode