Originally Posted by iFiras
Quote:
Originally Posted by Sascha
what I can already tell you is, that creating
pawn Код:
new LoginAttempts[MAX_PLAYERS];
at the point you did it (OnDialogResponse - even at the if(dialogid == ..... part) does not make any sense
the LOCAL variable is recreated each time you reenter the password, which sets it to 0 each time.
You need to create it as a GLOBAL variable (outside of any callback)
|
This.
Plus,
I don't see a reason for using "PlayerAlreadyLoggedIn" and "PlayerAlreadyRegisteredIn", actually useless.
Quote:
Originally Posted by Youssef214
pawn Код:
if(fexist(UserPath(playerid))) { if(PlayerAlreadyLoggedIn[playerid] == 0) { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit"); } } else { if(PlayerAlreadyRegisteredIn[playerid] == 0) { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register","Type your password below to register a new account.","Register","Quit"); } }
Please Help.
|
I advise you of showing these dialogs OnPlayerConnect instead of OnPlayerRequestClass.
|