SA-MP Forums Archive
get section from string - 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: get section from string (/showthread.php?tid=517556)



get section from string - n00el - 05.06.2014

hy. i waht to get some number from a string..
for e.x. the string is "1. blablablabal bablab babla
and i want "1." to a new variable.
or i want to get a first two character from a string. how i can do this? thanks


Re: get section from string - Rittik - 05.06.2014

Use sscanf by ******
click here


Re: get section from string - polander - 05.06.2014

Use strmid() function.
https://sampwiki.blast.hk/wiki/Strmid