03.11.2015, 14:03
pawn Код:
case DIALOG_LOGIN:
{
if(response)
{
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
if(!strcmp(hashpass, PlayerInfo[playerid][pPassword], false))
{
//IF Password is good, login part
}
else
{
//if miss 3 times part when kick's him..
}
printf("%s", PlayerInfo[playerid][pPassword]);
printf("%s", hashpass);
}
else Kick(playerid);
}
EDIT:
Probably the size of PlayerInfo[playerid][pPassword] is 128, on which Whirlpool requires 129.