Multiple Teams Error
#1

I tried searching and looking at tutorials, but it doesn't really explain what I want. I have multiple teams for my DM server. It's gonna be three or four of them. So I don't know how to add the skins to SetPlayerTeamFromClass and OnPlayerRequestClass and all that cause it costs errors everytime. I tried:

Код:
  
public OnPlayerRequestClass(playerid, classid)
{
	SetupPlayerForClassSelection(playerid);
	SetPlayerTeamFromClass(playerid,classid);

     if(classid == 0 || classid == 1 || classid == 2) {
	  GameTextForPlayer(playerid,"~r~TEAM Example Text",1000,5);
	} else if(classid == 3 || classid == 4 || classid == 5) {
	  GameTextForPlayer(playerid,"~g~TEAM Example Text",1000,5);
	} else if(classid == 6 || classid == 7 || classid == 8 || classid == 9) {
	  GameTextForPlayer(playerid,"~g~TEAM Example Text",1000,5);

   	return 1;
}
Reply


Messages In This Thread
Multiple Teams Error - by Adamrcook - 28.07.2009, 16:01
Re: Multiple Teams Error - by Adamrcook - 28.07.2009, 18:34
Re: Multiple Teams Error - by Marcel - 28.07.2009, 18:39
Re: Multiple Teams Error - by Adamrcook - 28.07.2009, 18:57
Re: Multiple Teams Error - by Marcel - 28.07.2009, 19:03
Re: Multiple Teams Error - by Adamrcook - 28.07.2009, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)