Player connect problems.
#10

pawn Код:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, UserStats[playerid][Name], MAX_PLAYER_NAME);
    if(CheckAccountExists(UserStats[playerid][Name]))
    {
        AccountExists[playerid] = 1;
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Welcome Back To New Life Gaming", "Please Login, insert your password below", "Login", "Leave");
        return 1;
    }
    else if(!CheckAccountExists(UserStats[playerid][Name]))
    {
        AccountExists[playerid] = 0;
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Welcome To New Life Gaming", "Please Register, insert a password below", "Register", "Leave");
        return 1;
    }
    return 1;
}
Brackets, ugh.
Reply


Messages In This Thread
Player connect problems. - by Anthonyx3' - 09.01.2011, 00:02
Re: Player connect problems. - by John_F - 09.01.2011, 00:03
Re: Player connect problems. - by Anthonyx3' - 09.01.2011, 00:12
Re: Player connect problems. - by John_F - 09.01.2011, 00:14
Re: Player connect problems. - by California - 09.01.2011, 00:15
Re: Player connect problems. - by Anthonyx3' - 09.01.2011, 00:18
Re: Player connect problems. - by California - 09.01.2011, 00:22
Re: Player connect problems. - by John_F - 09.01.2011, 00:22
Re: Player connect problems. - by Anthonyx3' - 09.01.2011, 00:33
Re: Player connect problems. - by California - 09.01.2011, 00:37

Forum Jump:


Users browsing this thread: 2 Guest(s)