Problems with sscanf warning: Format specifier does not match parameter count.
#1

Problems with sscanf warning: Format specifier does not match parameter count.



CODE:
CMD:nnamas(playerid,params[])
{
new Float:kord[3];
GetPlayerPos(playerid,kord[0],kord[1],kord[2]);
new cost,lvl;
if(sscanf(params,"ii",cost,lvl)) return SendError(playerid,"/nhome [cost] [lvl]");
new query[105];
format(query,sizeof(query),"INSERT INTO home (x,y,z,cost,lvl) VALUES ('%f','%f','%f','%d','%d')",kord[0],kord[1],kord[2],cost,lvl);
mysql_query(query);
CreatePickup(19523,1,kord[0],kord[1],kord[2], -1);
return 1;
}
Reply
#2

But where i can found another sscanf?
Reply
#3

Wait following the line number in the warning got you to this code, correct?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)