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.
|