How to split a string with sscanf2? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to split a string with sscanf2? (
/showthread.php?tid=215229)
How to split a string with sscanf2? -
Whizion - 23.01.2011
I know how to split it with the split() function, but how do i do it with sscanf2?
Thanks.
Re: How to split a string with sscanf2? -
Not available - 23.01.2011
Split it like this?
pawn Код:
new n1, n2, n3;
sscanf("1,2,3", "p<,>ddd", n1, n2, n3);
This will return:
Re: How to split a string with sscanf2? -
Whizion - 23.01.2011
Quote:
Originally Posted by Not available
Split it like this?
pawn Код:
new n1, n2, n3; sscanf("1,2,3", "p<,>ddd", n1, n2, n3);
This will return:
|
Awesome, thanks.