21.06.2015, 11:24
Hello, I am working on my server, and I am connecting includes to one main GM, and I am using one if which is displeying me colors of the zones, but when I compile that in main script, it`s show me up errors. Here is the whole function:
Here is the if function which is causing problems:
Here are the errrors:
pawn Код:
stock GetTeamColor(teamid)
{
//Ako je NO_TEAM ili ide u overflow vrati belu boju
if(teamid == NO_TEAM || teamid >= sizeof(TeamInfo) || teamid < 0) return white;
else return TeamInfo[teamid][TeamColor];
}
pawn Код:
if(teamid == NO_TEAM || teamid >= sizeof(TeamInfo) || teamid < 0) return white;
Код:
../TDM/TeamZones.pwn(260) : error 017: undefined symbol "TeamInfo" ../TDM/TeamZones.pwn(260) : error 029: invalid expression, assumed zero ../TDM/TeamZones.pwn(260) : warning 215: expression has no effect ../TDM/TeamZones.pwn(260) : error 001: expected token: ";", but found ")" ../TDM/TeamZones.pwn(260) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.