04.09.2012, 18:11
pawn Код:
if(!strcmp(hashPassword, PlayerInfo[playerid][Password], true))
{
//Put what happens when the correct password is filled in.
}
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 0;
}
Also don't use return ShowPlayerDialog, just because ShowPlayerDialog returns a value it doesn't mean it's the correct value, it just doesn't make sense. Return 0 (just ending the function) would be better in this case.
Edit: Kiroloss beat me to it, gotta love the wait between post time haha.