Some bad arguments - 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: Some bad arguments (
/showthread.php?tid=197975)
Some bad arguments -
ajwar - 10.12.2010
pawn Код:
format(Query,sizeof(Query), "INSERT INTO `playerinfo` (`user`, `password`, `kills`, `deaths`, `score`, `money`, `ve`, `bankmoney`, `IP`, `dt`, `email`) VALUES ('%s', md5('%s'), '%d', '%d', '%d', '%d', '%d', '%d', '%f','%s','%s')", escpname, escpass,0,0,0,0,0,0, PIP, result,GetPVarString(playerid,"epost"));
Why this line shows 2 of:
pawn Код:
warning 202: number of arguments does not match definition
Re: Some bad arguments -
gangstajoe - 10.12.2010
try this:
Код:
format(Query,sizeof(Query), "INSERT INTO `playerinfo` (`user`, `password`, `kills`, `deaths`, `score`, `money`, `ve`, `bankmoney`, `IP`, `dt`, `email`) VALUES ('%s', '%s', '0', '0', '0', '0', '0', '0', '%f','%s','%s')",escpname, md5(escpass), PIP, result,GetPVarString(playerid,"epost));
or:
Код:
new PVar[128];
GetPVarString(playerid,"epost",PVar,sizeof(PVar));
format(Query,sizeof(Query), "INSERT INTO `playerinfo` (`user`, `password`, `kills`, `deaths`, `score`, `money`, `ve`, `bankmoney`, `IP`, `dt`, `email`) VALUES ('%s', '%s', '0', '0', '0', '0', '0', '0', '%f','%s','%s')",escpname, md5(escpass), PIP, result,PVar);