[Pomoc]Error sa timovima

Započeo [BW]fitiLj.
4. Jul 2012.
266
pregleda
4
postova
[AdmTeam]_jovan
4
Enforcer
4. Jul 2012.
Skripta koju koristim:Los Santos Turf Wars v2.0 by LethaL
Detaljan opis problema😛okusao 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 = {
{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 = {
{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): /
[AdmTeam]_jovan
4
Enforcer
4. Jul 2012.
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 == 1)
    {
new Float:x, Float:y, Float:z; GetPlayerPos(i,x,y,z);

if(
( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
1028        && ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
&& ( ! (x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations) )
)
{
TextDrawHideForPlayer(i,NoZoneTextDraw ); TextDrawShowForPlayer(i,NoZoneTextDraw ); HideAllOtherTextDraws(i,15 );
}
else
{
for(new zone = 0; zone < MAX_ZONES; zone++)
{
if(x >= ZoneLocations && x < ZoneLocations && y >= ZoneLocations && y < ZoneLocations)
{
if(ZoneInfo == TEAM_GROVE) { TextDrawHideForPlayer(i,GroveTextDraw ); TextDrawShowForPlayer(i,GroveTextDraw );HideAllOtherTextDraws(i,1 );  }
else if(ZoneInfo == TEAM_BALLAS) { TextDrawHideForPlayer(i,BallasTextDraw ); TextDrawShowForPlayer(i,BallasTextDraw ); HideAllOtherTextDraws(i,2 );  }
else if(ZoneInfo == TEAM_AZTEC) { TextDrawHideForPlayer(i,AztecTextDraw ); TextDrawShowForPlayer(i,AztecTextDraw ); HideAllOtherTextDraws(i,3 );  }
else if(ZoneInfo == TEAM_VAGOS) { TextDrawHideForPlayer(i,VagosTextDraw ); TextDrawShowForPlayer(i,VagosTextDraw ); HideAllOtherTextDraws(i,5 ); }
else if(ZoneInfo == TEAM_COPS) { TextDrawHideForPlayer(i,CopsTextDraw ); TextDrawShowForPlayer(i,CopsTextDraw ); HideAllOtherTextDraws(i,6);  }
else if(ZoneInfo == TEAM_MAFIA) { TextDrawHideForPlayer(i,MafiaTextDraw ); TextDrawShowForPlayer(i,MafiaTextDraw ); HideAllOtherTextDraws(i,7 ); }
else if(ZoneInfo == TEAM_TRIAD) { TextDrawHideForPlayer(i,TriadTextDraw ); TextDrawShowForPlayer(i,TriadTextDraw ); HideAllOtherTextDraws(i,9 ); }
}
}
}
}
}
[AdmTeam]_jovan
4
Enforcer
5. Jul 2012.
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 😢
[AdmTeam]_jovan
4
Enforcer
5. Jul 2012.
E uspeo sam moze lock sada 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha