[Urgent] Dialog Help
#6

Quote:
Originally Posted by Rimeau
Посмотреть сообщение
Basically, but if you have an if() and more than one statement after it, you need to use brackets

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle = GetPlayerVehicleID(playerid);
        if(vehicle == 25 || vehicle == 26 || vehicle == 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");
        }
    }
    return 1;
}
I added "||", which is an OR
I have just switched to this, but unfortunately the same problem is occurring.
Quote:

The player does the command /starttrucking and they are told to head to the truckers HQ and pick up a truck. A marker at the HQ is set on their mini map. Upon arrival they enter any of the 3 trucks and nothing happens.

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: 1 Guest(s)