Quote:
Originally Posted by MicroKyrr
Here's the code
PHP Code:
case DIALOG_LOGIN:
{
if(!response) return Kick(playerid);
else
{
new hashpass[129];
WP_Hash(hashpass, sizeof(hashpass), inputtext);
if(strcmp(hashpass, PlayerInfo[playerid][Password], false) != 0)
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login Panel", "{FF6600}You have entered an incorrect password of this account!\nPlease enter the correct password to continue!", "Login", "Quit");
}
else
{
SetPlayerScore(playerid, PlayerInfo[playerid][Score]);
GivePlayerMoney(playerid, PlayerInfo[playerid][Cash]);
SendClientMessage(playerid, GREEN, "[SERVER]: You have successfully logged in! Welcome back");
PlayerInfo[playerid][Authenticated] = true;
TogglePlayerSpectating(playerid, false);
}
return 1;
}
}
}
return 0;
}
Also , I am not good at SQlite and mysql
|
Are you saving the player's password correctly? Can you show me the 'Password' enumerator and the function responsible for saving the data?