08.01.2012, 16:18
Done but still have problems--
here codes
here errors
here codes
Code:
CMD:teleports(playerid, params[]) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "tarta", "Lvas\nBuilding\nStunts\nTest\n", "Ok", "No"); public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1){ if(response){ switch(listitem)){ case 0: { //Selected Item: "Lvas" } case 1: { //Selected Item: "Building" } case 2: { //Selected Item: "Stunts" } case 3: { //Selected Item: "Test" } case 4: { //Selected Item: "" } } } else{ //The player has pressed "Ok". switch(listitem{ case 0: { //Selected Item: "Lvas" } case 1: { //Selected Item: "Building" } case 2: { //Selected Item: "Stunts" } case 3: { //Selected Item: "Test" } case 4: { //Selected Item: "" } } } } return 0; }
here errors
Code:
C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2797) : error 029: invalid expression, assumed zero C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2797) : error 017: undefined symbol "dialogid" C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2799) : error 017: undefined symbol "dialogid" C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2800) : error 017: undefined symbol "response" C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2801) : error 017: undefined symbol "listitem" C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2802) : error 014: invalid statement; not in switch C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2802) : warning 215: expression has no effect C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2802) : error 001: expected token: ";", but found ":" C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2802) : error 029: invalid expression, assumed zero C:\DOCUME~1\asa\Desktop\STUNTA~1\XTREAM~1\GAMEMO~1\XTREAM~1.PWN(2802) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.