[Urgent] Dialog Help
#9

Consider switching to a switch statement as suggested by Vince, here's an example of how to do so. Actually, I've done it for you..

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle = GetPlayerVehicleID(playerid);
        switch(vehicle)
        {
            case 25, 26, 27: { ShowPlayerDialog(playerid, TRUCKINGDIALOG, DIALOG_STYLE_LIST, "Choose a destination.", "From here to LV Depot /*(listitem 0)*/ \nFrom here to Ocean Docks /*(listitem 1)*/ \nFrom here to Verona/*(listitem 2)*/", "Ok", "Cancel Job"); }
        }
    }
Reply


Messages In This Thread
[Urgent] Dialog Help - by zDevon - 19.01.2012, 22:49
AW: [Urgent] Dialog Help - by Rimeau - 19.01.2012, 22:57
Re: [Urgent] Dialog Help - by Vince - 19.01.2012, 23:09
Re: AW: [Urgent] Dialog Help - by zDevon - 19.01.2012, 23:13
AW: [Urgent] Dialog Help - by Rimeau - 19.01.2012, 23:22
Re: AW: [Urgent] Dialog Help - by zDevon - 19.01.2012, 23:32
AW: [Urgent] Dialog Help - by Rimeau - 19.01.2012, 23:42
Re: AW: [Urgent] Dialog Help - by zDevon - 19.01.2012, 23:49
Re: [Urgent] Dialog Help - by 2KY - 20.01.2012, 03:10

Forum Jump:


Users browsing this thread: 2 Guest(s)