Dialog Problem +REP
#5

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


Messages In This Thread
Dialog Problem +REP - by Youssef214 - 02.10.2014, 20:42
Re: Dialog Problem +REP - by Sascha - 02.10.2014, 21:05
Re: Dialog Problem +REP - by iFiras - 02.10.2014, 21:10
Re: Dialog Problem +REP - by Youssef214 - 02.10.2014, 21:39
Re: Dialog Problem +REP - by iFiras - 02.10.2014, 21:42
Re: Dialog Problem +REP - by Youssef214 - 02.10.2014, 21:43
Re: Dialog Problem +REP - by Youssef214 - 03.10.2014, 08:10
Re: Dialog Problem +REP - by Eth - 03.10.2014, 08:57
Re: Dialog Problem +REP - by AroseKhanNiazi - 03.10.2014, 09:52
Re: Dialog Problem +REP - by Eth - 03.10.2014, 09:59

Forum Jump:


Users browsing this thread: 3 Guest(s)