Command for team, doesn't work, WHY !!!!
#5

Well, I already made the the teams.
Код:
#define TEAM_LVPD
#define TEAM_EMS
#define TEAM_FBI
#define TEAM_Military
#define TEAM_DRIVER
#define TEAM_NEW
And also

Код:
 
    SetPlayerTeamFromClass(playerid, classid)
    new gTeam[MAX_PLAYERS];
	
 	if (classid == 0)
	{
		gTeam[playerid] = 1;
  }

	if (classid == 1)
	{
		gTeam[playerid] = 2;
  }

	if (classid == 2)
	{
		gTeam[playerid] = 3 ;
  }

  if (classid == 3)
	{
		gTeam[playerid] = 4;
  }

	if (classid == 4)
	{
		gTeam[playerid] = 5;
  }
  if (classid == 5)
	{
		gTeam[playerid] = 6;
  }
but when I don't use in command function
Код:
new gTeam[MAX_PLAYERS];
It will say, undefined symbol ''gteam''
So, That's why I thought it will be okay if I use new gteam...

So what I have to do with this error ?

I need some solution!
Reply


Messages In This Thread
Command for team, doesn't work, WHY !!!! - by samuel_hamza - 01.04.2010, 20:58
Re: Command for team, doesn't work, WHY !!!! - by samuel_hamza - 01.04.2010, 21:50
Re: Command for team, doesn't work, WHY !!!! - by Thrarod - 01.04.2010, 22:00
Re: Command for team, doesn't work, WHY !!!! - by wafffllesss - 01.04.2010, 23:37
Re: Command for team, doesn't work, WHY !!!! - by samuel_hamza - 02.04.2010, 10:51
Re: Command for team, doesn't work, WHY !!!! - by MadeMan - 02.04.2010, 10:55
Re: Command for team, doesn't work, WHY !!!! - by samuel_hamza - 02.04.2010, 12:00
Re: Command for team, doesn't work, WHY !!!! - by samuel_hamza - 02.04.2010, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)