10.06.2014, 09:03
Код:
saonline.pwn(409) : error 035: argument type mismatch (argument 1) saonline.pwn(411) : error 035: argument type mismatch (argument 2)
pawn Код:
CMD:changepass(playerid,params[])
{
new oldpass[32],
newpass[32];
if(sscanf(params, "s[32]s[32]", oldpass, newpass)) return SendClientMessage(playerid, -1, "{3685BA}Usage: {FFFFFF}/changepass [old password] [new password]");
if(!strcmp(udb_hash(oldpass), udb_hash(newpass))) //l. 409
{
if(!strcmp(PlayerInfo[playerid][pPass], udb_hash(newpass))) return SendClientMessage(playerid, -1,"{3685BA}Error: {FFFFFF}Your current password equals the new password.");//l. 411
format(PlayerInfo[playerid][pPass], 32, newpass);
SendClientMessage(playerid, -1, "{3685BA}SERVER: {FFFFFF}You have successfully changed your password.");
}
else
{
SendClientMessage(playerid, -1,"{3685BA}SERVER: {FFFFFF}Your old password is incorrect. Please try again.");
}
return 1;
}