20.02.2011, 18:02
ok so i made a dialog teleport menu and while making it i tested it and i click "stunt parks" then "las venturas" and nothing happens?? please help heres code
thank you!!!
also sorry for the code this sites code just make the spaces messy
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 9726) { if(response) { if(listitem == 0) // Stunt Park Option From Teleport Main Menu { ShowPlayerDialog(playerid, 9872, DIALOG_STYLE_LIST, "Stunt Parks", "Las Venturas Airport", "Select", ""); } if(listitem == 1) // Hot Spots Option From Teleport Main Menu { SendClientMessage(playerid, 0xFF0000FF, "You Selected Hot Spots"); } if(listitem == 2) // Jumps Option From Teleport Main Menu { SendClientMessage(playerid, 0xFF0000FF, "You Selected Jumps"); } if(listitem == 3) // Base Jumps Option From Teleport Main Menu { SendClientMessage(playerid, 0xFF0000FF, "You Selected Base Jumps"); } return 1; } if(dialogid == 9872) { if(response) { if(listitem == 0) // Stunt Park Option From Teleport Main Menu { SendClientMessage(playerid, 0xFF0000FF, "You Picked Las Venturas"); } } } } return 1; }
also sorry for the code this sites code just make the spaces messy