08.01.2012, 16:13
Sorry for mistake
Here is codes
Here is codes
Code:
CMD:teleports(playerid, params[]) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Stunts", "\nLvas \nBuildingjump \nBaysidestunts \nNewstunts \nBounce", "Select", "Cancle"); public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1){ if(response){ switch(listitem)){ case 0; { //Selected Item: "" } case 1; { //Selected Item: "Lvas " } case 2; { //Selected Item: "Buildingjump " } case 3; { //Selected Item: "Baysidestunts " } case 4; { //Selected Item: "Newstunts " } case 5; { //Selected Item: "Bounce" } } } else{ //The player has pressed "Select". switch(listitem{ case 0: { //Selected Item: "" } case 1: { //Selected Item: "Lvas " } case 2: { //Selected Item: "Buildingjump " } case 3: { //Selected Item: "Baysidestunts " } case 4: { //Selected Item: "Newstunts " } case 5: { //Selected Item: "Bounce" } } } } return 0; } }