I Get The FOllowing Errors When i Compile.
#1

I Get The Errors Of

Код:
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"
Yes, I Did Define gteam at the top

Код:
new gTeam[MAX_PLAYERS];
I Now Do not know what the problem is, here is where it says the Error Is Being Created.

Код:
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
	}
At The Top I Do Have

Код:
#define USA 1
#define Japan 2
Please Help
Reply


Messages In This Thread
I Get The FOllowing Errors When i Compile. - by HayZatic - 01.07.2011, 11:49
Re: I Get The FOllowing Errors When i Compile. - by Shadoww5 - 01.07.2011, 12:03
Re: I Get The FOllowing Errors When i Compile. - by [HiC]TheKiller - 01.07.2011, 12:15
[No subject] - by HayZatic - 01.07.2011, 13:05

Forum Jump:


Users browsing this thread: 5 Guest(s)