SA-MP Forums Archive
sscanf multiple delimiters - 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: sscanf multiple delimiters (/showthread.php?tid=597044)



sscanf multiple delimiters - coloN - 26.12.2015

Hi, guys, I have a problem.
This is my str: 15,14,13|12,11,10|9,8,7...
How can I get every number?
PHP код:
new text[50],asd[6];
sscanf(text"p<,>ddd ddd",asd[0],asd[1],asd[2],asd[3],asd[4],asd[5]); 
where the space how to check for this symbol "|"?
Thanks in advance


Re: sscanf multiple delimiters - AbyssMorgan - 26.12.2015

PHP код:
P<,|> 



Re: sscanf multiple delimiters - coloN - 26.12.2015

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
P<,|> 
Thank you so much