10.06.2012, 12:06
Still not working.
pawn Код:
if(dialogid == dlogin)
{
if(!response) return Kick(playerid);
if(response)
{
new hpass[129];
WP_Hash(hpass,sizeof(hpass),inputtext);
if(strcmp(hpass, pInfo[playerid][Pass], true) == 0)
{
INI_ParseFile(Path(playerid),"loadaccount",.bExtra = true, .extra = playerid);
SetPlayerScore(playerid,pInfo[playerid][DMScore]+pInfo[playerid][RaceScore]);
SetPlayerScore(playerid,pInfo[playerid][DMScore]);
SetPlayerScore(playerid,pInfo[playerid][RaceScore]);
}
else
{
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","This account is registered. \nPlease enter the password for this account to login. \nIncorrect Password!","Login","Quit");
return 1;
}
}
}