16.05.2012, 03:18
I tried to follow this tutorial. Everything was fine, but I can't login
It says "You have entered an incorrect password...".
pawn Код:
if(dialogid == login)
{
if(!response) return Kick(playerid);
if(response)
{
if(udb_hash(inputtext) == pInfo[playerid][pass])
{
INI_ParseFile(Path(playerid),"loaduser_%s",.bExtra = true, .extra = playerid);
GivePlayerMoney(playerid,pInfo[playerid][money]);
SetPlayerScore(playerid,pInfo[playerid][score]);
}
else
{
ShowPlayerDialog(playerid,login,DIALOG_STYLE_INPUT,"Login","You have entered an incorrect password. \nThe name is registered. Enter your password to login to your account.","Login","Quit");
}
return 1;
}
}