Help with teams!
#8

That didn't work here this is what i did. I got 5 errors but still not work..

Код:
SetPlayerTeamFromClass(playerid, classid)
{
	switch(classid){
	case 0:
	{
		gTeam[playerid] = TEAM_POLICE;
	}
	case 1:
	{
		gTeam[playerid] = TEAM_SWAT;
	}
  case 3:
	{
		gTeam[playerid] = TEAM_MECHANIC;
	}
	case 4:
	{
		gTeam[playerid] = TEAM_MEDIC;
	}
	case 5:
	{
		gTeam[playerid] = TEAM_SG;
	}
	case 6:
	{
		gTeam[playerid] = TEAM_MAYOR;
	}
	case 7:
	{
		gTeam[playerid] = TEAM_HITMAN;
	}
	case 8:
	{
		gTeam[playerid] = TEAM_TAXI;
	}
}

	public OnPlayerRequestClass(playerid, classid) // LINE 266
	SetPlayerTeamFromClass(playerid, classid);
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
I still have 2 errors.

Код:
(266) : error 029: invalid expression, assumed zero
(266) : error 004: function "OnPlayerRequestClass" is not implemented
Reply


Messages In This Thread
Help with teams! - by coole210 - 06.06.2009, 21:12
Re: Help with teams! - by Vince - 06.06.2009, 21:13
Re: Help with teams! - by coole210 - 06.06.2009, 21:24
Re: Help with teams! - by cigo - 06.06.2009, 21:26
Re: Help with teams! - by coole210 - 06.06.2009, 21:26
Re: Help with teams! - by cigo - 06.06.2009, 21:56
Re: Help with teams! - by yezizhu - 06.06.2009, 22:47
Re: Help with teams! - by coole210 - 06.06.2009, 23:41
Re: Help with teams! - by Luka P. - 06.06.2009, 23:45
Re: Help with teams! - by coole210 - 06.06.2009, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)