03.03.2011, 22:06
Error:
Code:
Код:
C:\Users\Unknown123\Documents\Server\gamemodes\Unknown.pwn(2282) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
dcmd_changepass(playerid, params[])
{
new oldpass;
new queue[313], WPhash[145], escape[145];
if(sscanf(params, "ss", oldpass, WPhash)) return SendClientMessage(playerid, COLOR_USAGE, "USAGE: /changepass (Old Password) (New Password)");
else
{
mysql_real_escape_string(oldpass, escape); //Line 2282
WP_Hash(WPhash, sizeof(WPhash), escape);
format(queue, sizeof(queue), "UPDATE `Players` SET `Password` = '%s' WHERE `Username` = '%s'", WPhash, PlayerIP(playerid));
mysql_query(queue);
}
return 1;
}