10.02.2013, 20:22
alguien me puede ayudar que pasa , es que quiero hacer un menu con todos los teleports y que al dar enter se valla al lugar , ya lo ise pero me sale 3 errores les enviare los 2:Les enviares desde el dialogo por comando
Y aca esta el error
Porfavor ayudenme
PD: Me estaba guiando desde un tutorial que me hiso GROVE22
Quote:
if (strcmp("/teleports", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,21, DIALOG_STYLE_MSGBOX, "TELEPORTS","PLACES\nSTUNT\nPARKOUR\nPARACAIDISMO" , "Entrar", "Cancelar"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case DIALOG_MAIN: { if(!response) return 1; switch(listitem) { case 0: //CITYS { ShowPlayerDialog(playerid, DIALOG_PLACES, DIALOG_STYLE_LIST, "PLACES", "/sf San Fierro\n/lv Las Venturas\n/gs Grove street\n/area51 Area51", "Aceptar", "Atras"); } } return 1; } case DIALOG_PLACES: { if(!response) { ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Teleports", "PLACES\nSTUNT\nPARKOUR\nPARACAIDISMO", "Entrar", "Salir"); return 1; } switch(listitem) { case 0: //San Fierro { SetPlayerPos(playerid,-2085.0376,1378.6633,7.1016); SendClientMessage(playerid, -1, "Has sido teletransportado a San Fierro"); } case 1: //Las Venturas { SetPlayerPos(playerid,2032.1699,1008.2421,10.8203) ; SendClientMessage(playerid, -1, "Has sido teletransportado a Las Venturas"); } case 2: //Grove Street { SetPlayerPos(playerid,2497.2256,-1672.8578,13.3359); SendClientMessage(playerid, -1, "Has sido teletransportado a Grove Street"); } case 3: //Area51 { SetPlayerPos(playerid,213.4454,1911.1799,17.6406); SendClientMessage(playerid, -1, "Has sido teletransportado al Area51"); } } return 1; } } return 0; } |
Quote:
I:\server\my server\gamemodes\grandlarc.pwn(36) : error 074: #define pattern must start with an alphabetic character I:\server\my server\gamemodes\grandlarc.pwn(402) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(402) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(1659) : error 017: undefined symbol "DIALOG_MAIN" I:\server\my server\gamemodes\grandlarc.pwn(1673) : error 040: duplicate "case" label (value 0) I:\server\my server\gamemodes\grandlarc.pwn(1813) : warning 203: symbol is never used: "gArmySpawns" I:\server\my server\gamemodes\grandlarc.pwn(1813) : warning 203: symbol is never used: "gMedicalSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1813) : warning 203: symbol is never used: "gPoliceSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1813) : warning 203: symbol is never used: "lastanimid" I:\server\my server\gamemodes\grandlarc.pwn(1813) : warning 203: symbol is never used: "thisanimid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
PD: Me estaba guiando desde un tutorial que me hiso GROVE22