SA-MP Forums Archive
sscanf error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sscanf error (/showthread.php?tid=201137)



sscanf error - ajwar - 20.12.2010

pawn Код:
sscanf(Query, "p<|>e<is[MAX_PLAYER_NAME]iffffiiiiiiiiiiiiiiiiiiiis[20]s>", vInfo[id]);
pawn Код:
[16:23:43] sscanf error: Invalid data length.
[16:23:43] sscanf warning: Invalid character in data length.
What may error mean?

If i test result with printf i always get:

[16:23:43] 0
[16:23:43] 0.000000
[16:23:43] 0.000000
[16:23:43] 0.000000
[16:23:43] 0.000000
[16:23:43] 0
[16:23:43] 0
...


Re: sscanf error - armyoftwo - 20.12.2010

sscanf(Query, "p<|>e<is[MAX_PLAYER_NAME]iffffiiiiiiiiiiiiiiiiiiiis[20]s[STRING SIZE HERE]>", vInfo[id]);

I think thats the problem