• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How to convert string to int?
#5
(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.
  Reply


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

Forum Jump: