27.08.2013, 22:27
Load the hashed password and check if the two strings are equal.
pawn Код:
// Login via dialog (an example)
new hashPassword[129];
WP_Hash(hashPassword, 129, inputtext);
// Let's say PlayerInfo[playerid][pPassword] stores the loaded password.
if(!strcmp(hashPassword, PlayerInfo[playerid][pPassword], false))
{
// correct password
}
else
{
// wrong password
}