strlib's or any other Split Function Exists? - 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: strlib's or any other Split Function Exists? (
/showthread.php?tid=615666)
strlib's or any other Split Function Exists? -
R0LL3R - 25.08.2016
I saw a 2-3 lines of code in a gamemode that loaded a date from a file in a string form e.g "07.11.2016" and it used a function (I Don't Remember) to split the string where is found the "." symbol and then saved all 3 values in different variables.
If you know any function that can do this job,tell me in the comment.
Re: strlib's or any other Split Function Exists? -
SickAttack - 25.08.2016
Sscanf
Re: strlib's or any other Split Function Exists? -
DeeadPool - 25.08.2016
Sscanf
Re: strlib's or any other Split Function Exists? -
AbyssMorgan - 25.08.2016
PHP код:
new var1, var2, var3;
sscanf("07.11.2016","p<.>ddd",var1,var2,var3);
https://sampforum.blast.hk/showthread.php?tid=570927
Re: strlib's or any other Split Function Exists? -
R0LL3R - 25.08.2016
Quote:
Originally Posted by AbyssMorgan
|
Thanks,+Rep