Whats wrong here?
#1

Well I made a Dialog for OnPlayerRequestSpawn and when a player selects a certain skin the Dialog shows but it doesn't.

pawn Код:
if (dialogid == 20)
    {
        if(response)
        {
            new message[256+1];
            if(listitem == 0)
            {
            format(message, 256, "You have selected Los Santos Airport!", listitem);
            SendClientMessage(playerid, 0xFFFFFFFF, message);
            SetPlayerPos(playerid, 1895.2489,-2333.6741,13.5469);
            }
        }
    }
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if (gTeam[playerid] == TEAM_PILOT)
    {
        switch(GetPlayerTeam(GetPlayerSkin(playerid)))
        {
            case 17, 57, 61, 163, 164, 165, 166, 187:
            {
               ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Pilot's Spawn Point", "Los Santos Airport\nSan Fierro Airport\nLas Venturas Airport", "Select", "Cancel");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Whats wrong here? - by Luis- - 27.10.2010, 17:49
Re: Whats wrong here? - by MadeMan - 27.10.2010, 17:54
Re: Whats wrong here? - by Luis- - 27.10.2010, 17:58
Re: Whats wrong here? - by Calgon - 27.10.2010, 18:03
Re: Whats wrong here? - by MadeMan - 27.10.2010, 18:08
Re: Whats wrong here? - by Luis- - 27.10.2010, 18:11

Forum Jump:


Users browsing this thread: 2 Guest(s)