08.06.2012, 19:19
(
Последний раз редактировалось newbienoob; 10.06.2012 в 07:36.
)
I have a problem with YINI. I can login with any password I type.
And if I remove ' ! '
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]))
{
INI_ParseFile(Path(playerid),"loadaccount",true,true,playerid);
SetPlayerScore(playerid,pInfo[playerid][DMScore]+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;
}
}
}
pawn Код:
if(!strcmp(hpass,pInfo[playerid][Pass]))
// to
if(strcmp(hpass,pInfo[playerid][Pass]))
//I can't even login