20.06.2013, 00:22
strang i tested it on my fs and it works fine, are you sure those are the lines?
also another quick quote, i suggest to script efficiently like this
saves alot of room
also another quick quote, i suggest to script efficiently like this
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response == 1)
{
if(listitem == 0) { ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Bikes", "NRG-500\nFGR-900\nFreeway", "Select", "Close");}
if(listitem == 1) { ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Boats", "Speeder\nVortex", "Select", "Close");}
if(listitem == 2) { ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Cars", "Landstalker\nBravura\nBuffalo\nLinerunner\nPerenniel\nSentinel\nDumper\nTrashmaster\nStretch\nManana\nNext Page", "Select", "Close");}
if(listitem == 3) { ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "F Cars", "Firetruck\nAmbulance\nTaxi\nCabbie\nEnforcer\nSecuricar\nBus\nRhino\nCoach\nNext Page", "Select", "Close");}
if(listitem == 4){ ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Flans", "Laviathan\nHunter\nSeasparrow\nSkimmer\nSparrow\nRustler\nMaverick\nSAN News Maverick\nPolice Maverick\nNext Page", "Select", "Close");}
if(listitem == 5) { ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "RC", "RC Baron\nRC Raider\nRC Goblin\nRC Tiger\nRC Cam", "Select", "Close");}}
}
return 1;
}

