[Pomoc]Error sa timovima

Započeo [BW]fitiLj., Jul 04, 2012, 21:36:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Los Santos Turf Wars v2.0 by LethaL
Detaljan opis problema:Pokusao sam da izbrisem timove "Nang", "Bikers", "Low Riders", "Army", "Skaters", "Worker" i "Undertakers" kada ne izbrisem on ga lepo compiluje ali ima bug u gamemodu onda, a kada obrisem navedene timove izbacuje mi ova dva erorra:
C:\Users\Jole\Downloads\SA-MP\gamemodes\TW2.pwn(209) : error 029: invalid expression, assumed zero
C:\Users\Jole\Downloads\SA-MP\gamemodes\TW2.pwn(209) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Dio skripte:

Kod pre brisanja:

new Float:ZoneLocations[MAX_ZONES][4] = {
{2193.39, -1926.622, 2590.068, -1448.945}, //grove 0
{2010.854, -1448.945, 2590.068, -1058.119}, //ballas 1
{1807.184, -1926.622, 2193.39, -1448.945}, // aztecs 2
{1075.356, -1885.622, 1424.182, -1390.99}, //nang 3
{2590.068, -1673.966, 2927.337, -1058.119},//vagos 4
{1424.182, -1885.622, 1807.184, -1448.945}, // cops 5
{2079.305, -2312.000, 2547.053, -1926.622},//mafia 6
{1424.182,-1448.945,1862.935,-1044.718}, // biker 7
{765.8739, -1885.622, 1075.356, -1390.99}, //triad 8
{2374.551,-2677.546,2847.865,-2312.000}, //army 9
{2547.053, -2312.000, 2927.337, -1926.622}, // Low Riders 10
{1862.935,-1448.945,2010.854,-1044.718}, // Skaters 11
{765.8739, -1390.99, 1075.356, -1044.718}, // Undertakers 12
{1075.356, -1390.99, 1424.182, -1044.718} // worker 13
};


Kod posle brisanja:

new Float:ZoneLocations[MAX_ZONES][4] = {
{2193.39, -1926.622, 2590.068, -1448.945}, //grove 0
{2010.854, -1448.945, 2590.068, -1058.119}, //ballas 1
{1807.184, -1926.622, 2193.39, -1448.945}, // aztecs 2
{2590.068, -1673.966, 2927.337, -1058.119},//vagos 4
{1424.182, -1885.622, 1807.184, -1448.945}, // cops 5
{2079.305, -2312.000, 2547.053, -1926.622},//mafia 6
{765.8739, -1885.622, 1075.356, -1390.99}, //triad 8
};


Linije:

209: };
Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Novi error


C:\Users\Jole\Downloads\SA-MP\gamemodes\TW2.pwn(1028) : error 032: array index out of bounds (variable "ZoneLocations")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Linija:


public TDPlayerZoneUpdate(i)
{
    if(IsPlayerConnected(i) && Spawned[i] == 1)
    {
new Float:x, Float:y, Float:z; GetPlayerPos(i,x,y,z);

if(
( ! (x >= ZoneLocations[0][0] && x < ZoneLocations[0][2] && y >= ZoneLocations[0][1] && y < ZoneLocations[0][3]) )
&& ( ! (x >= ZoneLocations[1][0] && x < ZoneLocations[1][2] && y >= ZoneLocations[1][1] && y < ZoneLocations[1][3]) )
&& ( ! (x >= ZoneLocations[2][0] && x < ZoneLocations[2][2] && y >= ZoneLocations[2][1] && y < ZoneLocations[2][3]) )
&& ( ! (x >= ZoneLocations[3][0] && x < ZoneLocations[3][2] && y >= ZoneLocations[3][1] && y < ZoneLocations[3][3]) )
&& ( ! (x >= ZoneLocations[4][0] && x < ZoneLocations[4][2] && y >= ZoneLocations[4][1] && y < ZoneLocations[4][3]) )
&& ( ! (x >= ZoneLocations[5][0] && x < ZoneLocations[5][2] && y >= ZoneLocations[5][1] && y < ZoneLocations[5][3]) )
&& ( ! (x >= ZoneLocations[6][0] && x < ZoneLocations[6][2] && y >= ZoneLocations[6][1] && y < ZoneLocations[6][3]) )
1028        && ( ! (x >= ZoneLocations[7][0] && x < ZoneLocations[7][2] && y >= ZoneLocations[7][1] && y < ZoneLocations[7][3]) )
&& ( ! (x >= ZoneLocations[8][0] && x < ZoneLocations[8][2] && y >= ZoneLocations[8][1] && y < ZoneLocations[8][3]) )
&& ( ! (x >= ZoneLocations[9][0] && x < ZoneLocations[9][2] && y >= ZoneLocations[9][1] && y < ZoneLocations[9][3]) )
&& ( ! (x >= ZoneLocations[10][0] && x < ZoneLocations[10][2] && y >= ZoneLocations[10][1] && y < ZoneLocations[10][3]) )
&& ( ! (x >= ZoneLocations[11][0] && x < ZoneLocations[11][2] && y >= ZoneLocations[11][1] && y < ZoneLocations[11][3]) )
&& ( ! (x >= ZoneLocations[12][0] && x < ZoneLocations[12][2] && y >= ZoneLocations[12][1] && y < ZoneLocations[12][3]) )
&& ( ! (x >= ZoneLocations[13][0] && x < ZoneLocations[13][2] && y >= ZoneLocations[13][1] && y < ZoneLocations[13][3]) )
)
{
TextDrawHideForPlayer(i,NoZoneTextDraw ); TextDrawShowForPlayer(i,NoZoneTextDraw ); HideAllOtherTextDraws(i,15 );
}
else
{
for(new zone = 0; zone < MAX_ZONES; zone++)
{
if(x >= ZoneLocations[zone][0] && x < ZoneLocations[zone][2] && y >= ZoneLocations[zone][1] && y < ZoneLocations[zone][3])
{
if(ZoneInfo[zone][ZoneOwnerID] == TEAM_GROVE) { TextDrawHideForPlayer(i,GroveTextDraw ); TextDrawShowForPlayer(i,GroveTextDraw );HideAllOtherTextDraws(i,1 );  }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_BALLAS) { TextDrawHideForPlayer(i,BallasTextDraw ); TextDrawShowForPlayer(i,BallasTextDraw ); HideAllOtherTextDraws(i,2 );  }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_AZTEC) { TextDrawHideForPlayer(i,AztecTextDraw ); TextDrawShowForPlayer(i,AztecTextDraw ); HideAllOtherTextDraws(i,3 );  }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_VAGOS) { TextDrawHideForPlayer(i,VagosTextDraw ); TextDrawShowForPlayer(i,VagosTextDraw ); HideAllOtherTextDraws(i,5 ); }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_COPS) { TextDrawHideForPlayer(i,CopsTextDraw ); TextDrawShowForPlayer(i,CopsTextDraw ); HideAllOtherTextDraws(i,6);  }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_MAFIA) { TextDrawHideForPlayer(i,MafiaTextDraw ); TextDrawShowForPlayer(i,MafiaTextDraw ); HideAllOtherTextDraws(i,7 ); }
else if(ZoneInfo[zone][ZoneOwnerID] == TEAM_TRIAD) { TextDrawHideForPlayer(i,TriadTextDraw ); TextDrawShowForPlayer(i,TriadTextDraw ); HideAllOtherTextDraws(i,9 ); }
}
}
}
}
}

Jel moze da ja tebi dam mode na PM? Posto sam ja pre bio skriptao pa prestao pa evo me opet u svetu skriptanja a ko zna kolko se ja razumem trazim pod ZoneLocations i nema nista :'(