13.01.2015, 17:55
Bueno, copiй este dialog del Gamemode de Sacramento Roleplay ya que estoy creando unodesde cero y lo peguй, hasta ahн todo bien, hice los comandos para colocar, cambiar estaciуn y quitar el boombox y cuando voy a poner el dialog me salen todos estos errores:
Y este es el cуdigo que utilizй:
Код:
C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1054) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1056) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1059) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1061) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1063) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1067) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1071) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1075) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1079) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1083) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1087) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1091) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1093) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1095) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1097) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1100) : error 054: unmatched closing brace ("}") C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1105) : error 054: unmatched closing brace ("}") C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1107) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1109) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1111) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1115) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1117) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1119) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1121) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1123) : error 010: invalid function or declaration C:\Users\Wayzzar\Desktop\Gamemode de cero\gamemodes\GamemodeV1.0.pwn(1125) : error 017: undefined symbol "playerid" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
if(dialogid == DIALOG_BOOMBOX) { if(!response) { SendClientMessage(playerid, -1, "* Has cancelado la selecciуn de emisoras de radio"); return 1; } switch(listitem) { case 0: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX1,DIALOG_STYLE_LIST,"Lista de mъsica Jazz","Smooth Jazz\nJazz FM","Sintonizar","Cancelar"); } case 1: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX2,DIALOG_STYLE_LIST,"Lista de mъsica Pop","Power FM\nDEFJAY.COM","Sintonizar","Cancelar"); } case 2: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX3,DIALOG_STYLE_LIST,"Lista de mъsica Rap","Rap City Radio\nFlow 103 Rap","Sintonizar","Cancelar"); } case 3: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX4,DIALOG_STYLE_LIST,"Lista de mъsica Hip Hop","Hot 108 Jamz\nBlackBeats.FM","Sintonizar","Cancelar"); } case 4: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX5,DIALOG_STYLE_LIST,"Lista de mъsica Rock","Radio Paradise\n181.FM","Sintonizar","Cancelar"); } case 5: { ShowPlayerDialog(playerid,DIALOG_BOOMBOX6,DIALOG_STYLE_LIST,"Lista de mъsica Country","Love Country USA\nAbsolute Country Radio","Sintonizar","Cancelar"); } case 6: { ShowPlayerDialog(playerid,DIALOG_MUSICAURL,DIALOG_STYLE_INPUT, "Estйreo URL", "Introduzca la URL del MP3 o radio on-line que desee escuchar", "Continuar", "Salir"); } case 7: { if(GetPVarType(playerid, "BBArea")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { StopStream(i); } } DeletePVar(playerid, "BBStation"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX1)//JAZZ { if(!response)// { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=467000", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=467000"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=126367", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=126367"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX2)//POP { if(!response) { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=183569", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=183569"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=84158", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=84158"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX3)//RAP { if(!response) { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=174091", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=174091"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=293191", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=293191"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX4)//HIP HOP { if(!response) { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=8318", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=8318"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=7581", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=7581"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX5)//ROCK { if(!response) { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674983", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674983"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=37586"); } } } return 1; } if(dialogid == DIALOG_BOOMBOX6)//COUNTRY { if(!response) { ShowPlayerDialog(playerid,DIALOG_BOOMBOX,DIALOG_STYLE_LIST,"Lista de emisoras de radio","Jazz\nPop\nRap\nR&B and Urban\nRock\nCountry\nInsertar URL\n"COL_BLUE"Apagar estйreo",">", "Cancelar"); } if(response) { if(listitem == 0) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=121040", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=121040"); } } if(listitem == 1) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=678106", GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", "http://yp.shoutcast.com/sbin/tunein-station.pls?id=678106"); } } } return 1; } if(dialogid == DIALOG_MUSICAURL)//SET URL { if(response == 1) { if(isnull(inputtext)) { SendClientMessageEx(playerid, COLOR_GRAD1, "Atenciуn: no has escrito nada."); return 1; } if(strlen(inputtext)) { if(GetPVarType(playerid, "PlacedBB")) { foreach(Player, i) { if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "BBArea"))) { PlayStream(i, inputtext, GetPVarFloat(playerid, "BBX"), GetPVarFloat(playerid, "BBY"), GetPVarFloat(playerid, "BBZ"), 30.0, 1); } } SetPVarString(playerid, "BBStation", inputtext); } } } else { return 1; } }