Teams
#6

Quote:
Originally Posted by Gappy
I'm not quite sure why that isn't working

Do you have like
#define TEAM 1
#define TEAM 2
#define TEAM 3 etc etc

and I'm not sure what this is used for but it might help

under OnGameModeInIt put SetTeamCount(amountofteams);
i did this:

Код:
public SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0)
	{
		gTeam[playerid] = TEAM_MAFIA;
	}
	else
	{
		gTeam[playerid] = TEAM_BEACH;
	}
	else
	{
		gTeam[playerid] = TEAM_COPS;
 }
}
and I added the SetTeamCount one, and I still get this :S

Код:
C:\DOCUME~1\KAMIL\Pulpit\UNITED~1\GAMEMO~1\u-tdm.pwn(255) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
It seems that it is the line with the word ''else'' between TEAM_BEACH and TEAM_COPS :S
Reply


Messages In This Thread
Teams - by Puzi - 28.07.2009, 07:29
Re: Teams - by Puzi - 28.07.2009, 07:50
Re: Teams - by DarkClone - 28.07.2009, 07:52
Re: Teams - by Puzi - 28.07.2009, 07:58
Re: Teams - by Gappy - 28.07.2009, 08:08
Re: Teams - by Puzi - 28.07.2009, 08:16
Re: Teams - by Gappy - 28.07.2009, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)