pawn Код:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COLOR_WHITE"Success!",""COLOR_GREEN"You have successfully logged in!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_RED"You have entered an incorrect password.\n"COLOR_WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
}
And the file is created and filled and the password section is filled with the hashed password, but when i type in my password it says invalid
pawn Код:
public LoadUser_data(playerid, tag[], name[], value[])
{
INI_Int("Password",PlayerInfo[playerid][pPassword]);
INI_Int("Money",PlayerInfo[playerid][pMoney]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Gender",PlayerInfo[playerid][pGender]);
INI_Int("Age",PlayerInfo[playerid][pAge]);
return 1;
}
I can't use another user system now, i've went through alot in my script