01.07.2011, 11:49
I Get The Errors Of
Yes, I Did Define gteam at the top
I Now Do not know what the problem is, here is where it says the Error Is Being Created.
At The Top I Do Have
Please Help
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticDogFight\gamemodes\HayZaticDogFight.pwn(125) : error 017: undefined symbol "gTeam" C:\Documents and Settings\Chris\My Documents\HayZaticDogFight\gamemodes\HayZaticDogFight.pwn(125) : error 029: invalid expression, assumed zero C:\Documents and Settings\Chris\My Documents\HayZaticDogFight\gamemodes\HayZaticDogFight.pwn(125) : error 017: undefined symbol "USA"
Код:
new gTeam[MAX_PLAYERS];
Код:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: gTeam[playerid] = USA; case 1: gTeam[playerid] = Japan; } if(gTeam[playerid] == USA) { SetPlayerColor(playerid,USA_COLOUR); //Green } if(gTeam[playerid] == Japan) { SetPlayerColor(playerid,Japan_COLOUR); //Blue }
Код:
#define USA 1 #define Japan 2