SA-MP Forums Archive
Split Dynamic String [How] - 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: Split Dynamic String [How] (/showthread.php?tid=301927)



Split Dynamic String [How] - T0pAz - 06.12.2011

How to split a dynamic string on sscanf?

For example my string can be

pawn Код:
83,32,32
or

pawn Код:
23,21,21,41
How to split that string?


Re: Split Dynamic String [How] - THE_KNOWN - 06.12.2011

https://sampforum.blast.hk/showthread.php?tid=120356

check the delimiters part.


Re: Split Dynamic String [How] - T0pAz - 06.12.2011

will this work?

pawn Код:
sscanf( strzFWeapon, "p<,>A<i>(-1)[10]", weapons[] );