Little help
#1

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:
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];
}
Here is the if function which is causing problems:
pawn Код:
if(teamid == NO_TEAM || teamid >= sizeof(TeamInfo) || teamid < 0) return white;
Here are the errrors:
Код:
../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.
Reply


Messages In This Thread
Little help - by Sanady - 21.06.2015, 11:24
Re: Little help - by Dusan01 - 21.06.2015, 11:28
Re: Little help - by Sanady - 21.06.2015, 11:36
Re: Little help - by Dusan01 - 21.06.2015, 11:55
Re: Little help - by Sanady - 21.06.2015, 12:20
Re: Little help - by Sanady - 21.06.2015, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)