SSCANF: Format specifier does not match parameter count.
#1

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?
Reply
#2

And the rest of the function, perhaps?
Reply
#3

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]);
Reply
#4

And there's the problem. You specified 13 variables to store the data, but only 12 format specifiers.
Reply
#5

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.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)