SA-MP Forums Archive
How could I be splitting this string up? - 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: How could I be splitting this string up? (/showthread.php?tid=613639)



How could I be splitting this string up? - danielpalade - 30.07.2016

So let's say that I have the date 30-01-2016 in a variable named date, which would be new date[24];.
How could I split every number in different variables?
So the 30 will be in a new variable, the 01 would be in a different variable and 2016 would be in a different variable?


Re: How could I be splitting this string up? - Luicy. - 30.07.2016

Here
PHP код:
sscanf(date"p<->iii"day ,monthyear);