sscanf bug? - 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 bug? (
/showthread.php?tid=618422)
sscanf bug? -
Spenker - 05.10.2016
Not correctly ID extracted.
TAB Players:
SSCANF Code (in dialog response):
Код HTML:
new ID;
sscanf(inputtext,"u",ID);
printf("d: %s, %d", inputtext, ID);
.LOG:
Код HTML:
[10:57:45] d: Test (0), 0
[10:57:46] d: Test. (1), 0
INCORRECT!
CORRECT:
d: Test (0), 0 => ID: 0 with 0
d: Test. (1), 1 => ID: 1 with 1
Re: sscanf bug? -
Spenker - 05.10.2016
bump.
Re: sscanf bug? -
Yaa - 05.10.2016
Please Don't beg for help
and nice english Please more informations no one can understand this ._.
Re: sscanf bug? -
Sanady - 05.10.2016
Show more then three lines of code.