2 Dialogs not working properly !
#1

I Need the server to do this: Start server up, *Team selection dialog appears* Click team, click next, *Class selection dialog appears* click class, click ok. *Spawned at chosen teams primary spawn point*. But it does not do this. My server only shows the team selection dialog, I click next but the class selection dialog doesn't appear, only the default sa-mp class selection, but it's blank and the spawn button doesn't work.

Basically each team has a different spawn point so I will give you them.
pawn Код:
AddPlayerClass(73,187.383438, 1931.711059, 17.705003, 0, 0, 0, 0, 0, 0, 0); // GERMANY
    AddPlayerClass(254,-430.193237, 2240.529296, 42.983383, 0, 0, 0, 0, 0, 0, 0); // IRAQ
    AddPlayerClass(285,-92.667526, 1226.703247, 19.742187, 0, 0, 0, 0, 0, 0, 0); // RUSSIA
    AddPlayerClass(287,414.370117, 2534.738281, 19.148437, 0, 0, 0, 0, 0, 0, 0); // USA
    AddPlayerClass(206,-251.1134,2600.3315,62.8582,359.2632,0,0,0,0,0,0); // BANGLA

These are my dialog responses
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_TEAMS) //TEAM SELECTION ////////////////////////////////////////////////////////////
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerSkin(playerid, 179);
                SendClientMessage(playerid, GREEN, "Welcome to GERMANY");
                SetPlayerColor(playerid, TEAM_GERMANY_COLOR);
                gTeam[playerid] = TEAM_GERMANY;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, GREEN, "Welcome to IRAQ");
                SetPlayerSkin(playerid, 128);
                GameTextForPlayer(playerid,"~p~Taliban Cell",1000,4);
                SetPlayerColor(playerid, TEAM_IRAQ_COLOR);
                gTeam[playerid] = TEAM_IRAQ;
            }
            if(listitem == 2)
            {
                SendClientMessage(playerid, GREEN, "Welcome to Russia");
                SetPlayerSkin(playerid, 206);
                GameTextForPlayer(playerid,"~r~Soviet Union",1000,4);
                SetPlayerColor(playerid, TEAM_RUSSIA_COLOR);
                gTeam[playerid] = TEAM_RUSSIA;
            }
        }
    }
    if(dialogid == 60) // CLASS SELECTION //////////////////////////////////////////////
    {
        if(response)
        {
            if(GetPlayerScore(playerid) <= 0)//Private
            {

                gPlayerClass[playerid] = ASSAULT_CLASS;
                PickedClass[playerid] = 1;
                GivePlayerWeapon(playerid, 24, 200);
                GivePlayerWeapon(playerid, 31, 500);
                GivePlayerWeapon(playerid, 17, 5);
            }
            if(listitem == 0)//sniper DONE
            {
                if(GetPlayerScore(playerid) <= 10)//Private
                {
                    SendClientMessage(playerid, RED, "You spawned as Sniper..");
                    gPlayerClass[playerid] = SNIPER_CLASS;
                    PickedClass[playerid] = 1;
                    GivePlayerWeapon(playerid, 23, 500);
                    GivePlayerWeapon(playerid, 34, 100);
                    GivePlayerWeapon(playerid, 29, 200);
                }
            }
            if(listitem == 1)//pilot DONE
            {
                if(GetPlayerScore(playerid) <= 1150)//Lieutenant Colonel
                {
                    gPlayerClass[playerid] = AIRMAN_CLASS;
                    PickedClass[playerid] = 1;
                    GivePlayerWeapon(playerid, 22, 50);
                    GivePlayerWeapon(playerid, 29, 500);
                    GivePlayerWeapon(playerid, 16, 5);
                }
            }
            if(listitem == 2)//Engineer
            {
                if(GetPlayerScore(playerid) <= 250)//Sergeant
                {
                    gPlayerClass[playerid] = ENGINEER_CLASS;
                    PickedClass[playerid] = 1;
                    GivePlayerWeapon(playerid, 22, 100);
                    GivePlayerWeapon(playerid, 32, 500);
                    GivePlayerWeapon(playerid, 35, 5);
                }
            }
            if(listitem == 3)//FlameThrower
            {
                if(GetPlayerScore(playerid) <= 400)//CAPTAIN
                {
                    gPlayerClass[playerid] = FLAMETHROWER_CLASS;
                    PickedClass[playerid] = 1;
                    GivePlayerWeapon(playerid, 24, 200);
                    GivePlayerWeapon(playerid, 30, 200);
                    GivePlayerWeapon(playerid, 37, 200);
                }
            }
        }
    }
    return 1;
}

And finally, this is my OnPlayerConnect
pawn Код:
ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Choose a Team", "USA\nTaliban\nEurope\nOther\nOther", "Choose","");
   
ShowPlayerDialog(playerid, 60, DIALOG_STYLE_LIST, "Choose a Class", "Assault\nSniper\nPilot\nEngineer\nPyroman", "Choose","");
Do you see any problem? If you want an idea of what I want, start this server up: 93.190.141.10:6699
Reply


Messages In This Thread
Class Selection/Team Selection not working !!!!!!!!!!!!!!! - by Eminem 2ka9 - 26.10.2012, 17:52
Re: 2 Dialogs not working properly ! - by V1ceC1ty - 26.10.2012, 18:28
Re: 2 Dialogs not working properly ! - by Eminem 2ka9 - 26.10.2012, 18:30
Re: 2 Dialogs not working properly ! - by V1ceC1ty - 26.10.2012, 18:33
Re: 2 Dialogs not working properly ! - by Eminem 2ka9 - 26.10.2012, 18:33
Re: 2 Dialogs not working properly ! - by V1ceC1ty - 26.10.2012, 18:39
Re: 2 Dialogs not working properly ! - by Yamakei - 26.10.2012, 18:39
Re: 2 Dialogs not working properly ! - by xplor09edy - 26.10.2012, 18:40
Re: 2 Dialogs not working properly ! - by V1ceC1ty - 26.10.2012, 18:48
Re: 2 Dialogs not working properly ! - by Eminem 2ka9 - 26.10.2012, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)