Whirpool help won't work on login.
#5

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;
}
You were using the non hashed string to compare to, and you were mistaking with the return value of strcmp. Sorry I did not notice this the first time, it should work now.

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.
Reply


Messages In This Thread
Whirpool help won't work on login. - by caki - 04.09.2012, 16:38
Re: Whirpool help won't work on login. - by playbox12 - 04.09.2012, 16:40
Re: Whirpool help won't work on login. - by caki - 04.09.2012, 17:39
Re: Whirpool help won't work on login. - by Kirollos - 04.09.2012, 18:09
Re: Whirpool help won't work on login. - by playbox12 - 04.09.2012, 18:11
Re: Whirpool help won't work on login. - by caki - 04.09.2012, 18:27
Re: Whirpool help won't work on login. - by MarkoN - 04.09.2012, 18:45
Re: Whirpool help won't work on login. - by caki - 06.09.2012, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)