06.01.2012, 14:11
Filterscript
aparece esses erros:
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(5
: error 017: undefined symbol "GZS_CRIADAS"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 017: undefined symbol "GZCriadas"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
as linhas que estao dando erro estao no public OnGameModeInit() as 58 e 60 sгo:
COMO Eu resolvo esses erros
pf me ajudem sу falta isso pro meu gm fika pronto
Код:
#include <a_samp> #if defined FILTERSCRIPT #define GZS_CRIADAS 8 new GZCriadas[GZS_CRIADAS]; new NomesGZs[GZS_CRIADAS][] = 8 { "Castelo", "Estasao", "AeroDoDeserto", "Motel", "PARKE", "Autrodomo", "LagoPirata", "Royale" }; new CordGZs[GZS_CRIADAS][8] = { //o numero dentro da array tem que tб de acordo com os codigos abaixo! {2075.157470, 989.061279, 2339.157470, 1189.061279}, // Castelo - X,Y,X,Y {1250.794311, 2631.961425, 1538.794311, 2703.961425}, // Estasao - X,Y,X,Y {73.848297, 2400.415039, 489.848297, 2624.415039}, // AeroDoDeserto- X,Y,X,Y {2030.552490, 2113.295410, 2118.552490, 2201.295410}, // Motel- X,Y,X,Y {2430.995849, 1477.328247, 2598.995849, 1613.328247}, // PARKE- X,Y,X,Y {1013.292236, 1411.981079, 1205.292236, 1683.981079}, // Audrodomo- X,Y,X,Y {1859.144165, 1448.397216, 2043.144165, 1704.397216}, // LagoPirata- X,Y,X,Y {2073.381347, 1385.136718, 2241.381347, 1545.136718} // Royale- X,Y,X,Y }; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { for (new i = 0; i <GZS_CRIADAS; i++) // Loop { GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3], CordGZs[i][4],CordGZs[i][5],CordGZs[i][6],CordGZs[i][7]); printf("Gang Zone %s Criada com sucesso",NomesGZs[i]); return 1; } public OnPlayerSpawn(playerid) for (new i = 0; i <GZS_CRIADAS; i++) { GangZoneShowForPlayer(GZCriadas[i],COLOR_CINZA1); printf("Gang Zone %s Criada com sucesso",NomesGZs[i]); } return 1; } stock IsAreaInGangCheck(playerid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); for (new i=0; i < GZS_CRIADAS; i++) if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) return true; return false; } public OnPlayerCommandText(playerid, cmdtext[]) if(!strcmp(cmdtext, "/dominar", true)) { if(!IsAreaInGangCheck(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Vocк nгo estб em nenhuma Gang Zone,FAIL"); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); for (new i=0; i < GZS_CRIADAS; i++) if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) { format(string, sizeof(string), "%s comeзou a dominar a gang zone %s.",name,NomesGZs[i]); } SendClientMessageToAll(0xFFFF00AA, string); GangZoneFlashForAll(GZCriadas[i], GetPlayerColor(playerid)) SetTimer("Terminar",60000,false); return 1; } return 0; } forward Terminar(playerid); public Terminar(playerid) { if(!IsAreaInGangCheck(playerid)) { SendClientMessageToAll(0xFFFF00AA, "Nгo consiguiram dominar o territуrio"); } new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); for (new i=0; i < GZS_CRIADAS; i++) if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) { format(string, sizeof(string), "%s conseguiu dominar %s.",name,NomesGZs[i]); GangZoneStopFlashForAll(GZCriadas[i]); } SendClientMessageToAll(0xFFFF00AA, string); return true; }
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(5
![Cool](images/smilies/cool.gif)
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 017: undefined symbol "GZCriadas"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Desktop\SErver do apollo\pawno\GAngzones LV 2.pwn(60) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
as linhas que estao dando erro estao no public OnGameModeInit() as 58 e 60 sгo:
Код:
58> for (new i = 0; i <GZS_CRIADAS; i++) // Loop { 60> GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3], CordGZs[i][4],CordGZs[i][5],CordGZs[i][6],CordGZs[i][7]);
![Huh?](images/smilies/confused.gif)