SSCANF: 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SSCANF: Format specifier does not match parameter count. (
/showthread.php?tid=256567)
SSCANF: Format specifier does not match parameter count. -
Biesmen - 21.05.2011
I'm having a warning from SSCANF, but I don't see a problem:
pawn Код:
sscanf(string, "p<|>{s[24]s[30]}iiiiiis[12]iiiii",
What could the problem be?
Re: SSCANF: Format specifier does not match parameter count. -
Vince - 21.05.2011
And the rest of the function, perhaps?
Re: SSCANF: Format specifier does not match parameter count. -
Biesmen - 21.05.2011
pawn Код:
sscanf(string, "p<|>{s[24]s[30]}iiiiiis[12]iiiii", PlayerInfo[playerid][pMoney],
PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pDeaths],
PlayerInfo[playerid][pStuff],
PlayerInfo[playerid][pStuff1],
PlayerInfo[playerid][pStuff3],
PlayerInfo[playerid][pRegTime],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pPlayerTimeH],
PlayerInfo[playerid][pPlayerTimeM],
PlayerInfo[playerid][pPlayerTimeS],
PlayerInfo[playerid][pVip],
PlayerInfo[playerid][pVipDate]);
Re: SSCANF: Format specifier does not match parameter count. -
Vince - 21.05.2011
And there's the problem. You specified 13 variables to store the data, but only 12 format specifiers.
Re: SSCANF: Format specifier does not match parameter count. -
Mean - 21.05.2011
Quote:
Originally Posted by Vince
And there's the problem. You specified 13 variables to store the data, but only 12 format specifiers.
|
It's actually 14 variables and 13 format specifiers as I see.
Anyway yea that's the prob.
Re: SSCANF: Format specifier does not match parameter count. -
Biesmen - 21.05.2011
Quote:
Originally Posted by Vince
And there's the problem. You specified 13 variables to store the data, but only 12 format specifiers.
|
You're correct, I didn't notice that. Thank you.
@Mean
No it's not.