10.11.2014, 18:44
https://sampforum.blast.hk/showthread.php?tid=276352
(16) : error 017: undefined symbol "ZoneInfo"
(17) : error 017: undefined symbol "ZoneInfo"
384 error 021: symbol already defined: "ZoneInfo"
(1442) : error 010: invalid function or declaration
(1445) : error 010: invalid function or declaration
10977) : warning 235: public function lacks forward declaration (symbol "ZoneTimer")
11002) : error 017: undefined symbol "Teams"
(11002) : error 036: empty statement
(11002) : error 017: undefined symbol "t"
(11002) : fatal error 107: too many error messages on one line
Thank
(16) : error 017: undefined symbol "ZoneInfo"
(17) : error 017: undefined symbol "ZoneInfo"
384 error 021: symbol already defined: "ZoneInfo"
(1442) : error 010: invalid function or declaration
(1445) : error 010: invalid function or declaration
10977) : warning 235: public function lacks forward declaration (symbol "ZoneTimer")
11002) : error 017: undefined symbol "Teams"
(11002) : error 036: empty statement
(11002) : error 017: undefined symbol "t"
(11002) : fatal error 107: too many error messages on one line
PHP код:
16 new ZoneAttacker[sizeof(ZoneInfo)] = {-1, ...};
17 new ZoneAttackTime[sizeof(ZoneInfo)];
384 :
new ZoneInfo[][eZone] = {
{2337.9004,-1808.8383,2590.2043,-1610.3673,TEAM_GROVE},
{2084.7,-1808.8383,2337.9004,-1610.3673,TEAM_BALLAS},
{2590.2043,-1808.8383,2842.3,-1610.3673,TEAM_VAGOS},
{1429.3770,-1732.4554,1529.1932,-1592.1989,TEAM_GROVE}
};
1442:
for(new i=0; i < sizeof(ZoneInfo); i++)
{
GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam]));
if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacke[i]));
}
11002:
for(new t=0; t < sizeof(Teams); t++) // loop all teams