Need help with string functions
#2

Sscanf is the way. Documentation here: https://sampforum.blast.hk/showthread.php?tid=602923

pawn Код:
new str[128] = "2.00000|55.33333|0|55|My Test";
new Float: posX, Float: posY, font, color, text[128];
sscanf(str, "p<|>ffiis[128]", posX, posY, font, color, text);
printf("\nposX: %f\nposY: %f\nfont: %i\ncolor: %i\ntext: \"%s\"", posX, posY, font, color, text);
Reply


Messages In This Thread
Need help with string functions - by Maheerali - 30.09.2016, 07:19
Re: Need help with string functions - by Konstantinos - 30.09.2016, 07:27
Re: Need help with string functions - by Maheerali - 30.09.2016, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)