08.09.2012, 10:49
Quote:
You are fail.
Buf is not a integer. Its a string. Why you hashing the password when its already hash? pawn Code:
|
pawn Code:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
new buf[145];
if(WP_Hash(buf, sizeof(buf), inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
}
}