21.08.2011, 15:31
Note for yourself:
If you look close at all 4 of those errors, you'll will see that all of those errors are showing one line: 158.
So why don't you just define the gTeam Teams?
Here's an example:
EDIT: Sorry for double post, I forgot that I posted earlier on this topic..
If you look close at all 4 of those errors, you'll will see that all of those errors are showing one line: 158.
So why don't you just define the gTeam Teams?
Here's an example:
pawn Code:
//Somewhere on top of your script
#define TEAM_ZOMBIE 1
#define TEAM2 2
#define TEAM3 3
static gTeam[MAX_PLAYERS];
//Under OnPlayerRequestClass
SetPlayerClass(playerid, classid);
//This is a custom callback, put it somewhere in the middle of the script
SetPlayerClass(playerid, classid)
{
if(classid == 0 || classid == 1 || classid == 2)
{
gTeam[playerid] = TEAM_ZOMBIE;
}
else if(classid == 3 || classid == 4 || classid == 5)
{
gTeam[playerid] = TEAM2;
}
else if(classid == 6 || classid == 7 || classid == 8)
{
gTeam[playerid] = TEAM3;
}
}


