sscanf warning: Format specifier does not match parameter count. - 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 warning: Format specifier does not match parameter count. (
/showthread.php?tid=593888)
sscanf warning: Format specifier does not match parameter count. -
Slawiii - 10.11.2015
i m founded this warning in my server_logs
"sscanf warning: Format specifier does not match parameter count."
the code is:
PHP код:
printf("sscanf 1");
sscanf(t_line, "p<|>i{s[21]s[16]s[128]}d{ddddddddd}s[16]{s[16]dddd}", PlayerInfo[extraid][pRegID], admlvl, lastIP);
Re : sscanf warning: Format specifier does not match parameter count. -
Dutheil - 11.11.2015
Print t_line and show us
Edit :
Work perfectly for me :
PHP код:
#pragma compat 1
#include "a_samp"
#include "sscanf2"
main()
{
new
params[] = "2|text|text|text|2|5|5|5|5|5|5|5|5|5|yo|text|5|5|5|5";
new
value1,
value2,
str[16];
sscanf(params, "p<|>i{s[21]s[16]s[128]}d{ddddddddd}s[16]{s[16]dddd}", value1, value2, str);
printf("%d %d %s", value1, value2, str); // 2 2 yo
}