sscanf help with optional params - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf help with optional params (
/showthread.php?tid=381648)
sscanf help with optional params -
Swimor - 30.09.2012
Hello,
For exemple i have string like this:
1,2,3,4,5
I want to create an array of numbers(ids), I tying to use sscanf like this:
Код:
sscanf(ids, "p<,>A<i>(-1)[5]", sendids);
I typing 1,2 and the result of array is: 0 0 0 0 0.
How i can fix this?
Update:
Fixed, I'm idiot i forget to change this:
to this:
You can lock this topic