This is not working
#1

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_LOGIN:
        {
            if(!response)
            {
                SendClientMessage(playerid, COLOUR_RED, "Kick due to : Quitted login");
                return Kick(playerid);
            }
            if(CheckUserLogin(playerid, inputtext))
            {
                if( PlayerInfo[playerid][tutorial] >= 1)
                {
                    TogglePlayerSpectating(playerid, false);
                    LoginUser(playerid);
                    SpawnPlayer(playerid);
                }
                if( PlayerInfo[playerid][tutorial] == 0)
                {
                    SendClientMessage(playerid, RED, "You left during the tutorial, not to worry here it is now.
                    ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "
What is meant by DM", "Deadmen\nDeathmatching\nDeathmaking\nDudemoaning", "Select", "Quit");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOUR_RED, "
Wrong password, please try again");
                return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "
Login", "Type in your password to login", "Login", "Quit");
            }
        }
The tutorial itself works and at the end it sets PlayerInfo[playerid][tutorial] =1;. The idea is that if they log out during the tutorial then they cannot log in and it puts them back into the tutorial. The problem however is that even if tutorial is = to 1 It still puts me in it. Help please.
Reply


Messages In This Thread
This is not working - by cloudysky - 26.06.2011, 14:36
Re: This is not working - by iPLEOMAX - 26.06.2011, 14:43
Re: This is not working - by cloudysky - 26.06.2011, 14:44
Re: This is not working - by iPLEOMAX - 26.06.2011, 14:45
Re: This is not working - by cloudysky - 26.06.2011, 14:46
Re: This is not working - by iPLEOMAX - 26.06.2011, 14:47
Re: This is not working - by cloudysky - 26.06.2011, 14:49
Re: This is not working - by iPLEOMAX - 26.06.2011, 14:53
Re: This is not working - by cloudysky - 26.06.2011, 14:56

Forum Jump:


Users browsing this thread: 5 Guest(s)