20.01.2012, 03:10
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"); }
}
}