Login Help
#9

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
if(!dini_Exists(path)) // if account doesn't exist
    {
        gPlayerAccount[playerid] = 1;
        DisplayDialogForPlayer(playerid, 1); // you show login dialog ? wth
        SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance.");
        return 1;
    }
    else // account exists
    {
        gPlayerAccount[playerid] = 0;
        DisplayDialogForPlayer(playerid, 2); // you show register dialog ? wth
        SendClientMessage(playerid, -1, "This server may use explicit content. By playing here you agree with our COPPA Compliance.");
        return 1;
    }
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Jefff pointed out the mistake but you didn't understand him.

If the file doesn't exist (player is not registered), you set that the player has an account and you show them the dialog with ID 1 which is the login one. Those HAVE to be on the login part (if the file exists).

Just swap them.
My bad then, I'll try it out.
Edit: Applied the changes, nothing has changed. It seems the error comes from another source.
Reply


Messages In This Thread
Login Help - by Michael B - 17.05.2015, 14:12
Re: Login Help - by Smileys - 17.05.2015, 14:37
Re: Login Help - by Michael B - 17.05.2015, 14:51
Re: Login Help - by Smileys - 17.05.2015, 15:03
Re: Login Help - by Jefff - 17.05.2015, 15:09
Re: Login Help - by Michael B - 17.05.2015, 15:36
Re: Login Help - by Konstantinos - 17.05.2015, 15:39
Re: Login Help - by FernandoLight - 17.05.2015, 15:42
Re: Login Help - by Michael B - 17.05.2015, 15:57
Re: Login Help - by FernandoLight - 17.05.2015, 16:50

Forum Jump:


Users browsing this thread: 2 Guest(s)