SA-MP Forums Archive
sscanf2 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)
+--- Thread: sscanf2 error (/showthread.php?tid=302240)



sscanf2 error - xMichaelx - 08.12.2011

Hey,

Currently i am using sscanf on a MySQL server using the following code to order my player info.

pawn Код:
sscanf(szResult, "e<p<|>s[25]s[30]ddddddddddddddffdddd", PlayerInfo[extraid]);
That is the only sscanf line i use, the rest are all j_sscanf used from the jBan.inc.

Is there anything wrong with the above coding?

Thanks

-Michael

ERROR:[23:46:55] sscanf error: Unclosed specifier parameters.


Re: sscanf2 error - [HiC]TheKiller - 08.12.2011

When I look at that, the first thought that comes to my head with that error is that you're missing a ">" at the end of your sscanf line to close the enum. Try this:

pawn Код:
sscanf(szResult, "e<p<|>s[25]s[30]ddddddddddddddffdddd>", PlayerInfo[extraid]);