11.01.2012, 04:35
My teams for USA are correctly defined
I have this
However error is unexplained here.
error message appears like this.
These three teams are allies, I set USA to 3 different teams for purposes I dont care to explain. Can some one please explain where I went wrong?
Quote:
#define TEAM_USA1 //U.S 1st division #define TEAM_USA1_COLOR 0x0000FFFF #define TEAM_USA2 //U.S 2nd division #define TEAM_USA2_COLOR 0x0000FFFF #define TEAM_USA3 //U.S 3rd division #define TEAM_USA3_COLOR 0x0000FFFF |
Quote:
new gTeam[MAX_PLAYERS]; |
Quote:
SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_USA1;//error here line 107 SetPlayerTeam(playerid, 1); } else if (classid == 1) { gTeam[playerid] = TEAM_USA2; //error here line 112 SetPlayerTeam(playerid, 1); } else if (classid == 2) { gTeam[playerid] = TEAM_USA3; //error here line 117 SetPlayerTeam(playerid, 1); } } |
Quote:
(107) : error 029: invalid expression, assumed zero (112) : error 029: invalid expression, assumed zero (117) : error 029: invalid expression, assumed zero |