Why won't it show all 4?
#1

This is my OnPlayerRequestClass:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	switch(classid)
	{
	    case 0:
	    {
	        //Police Spawn
			SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203);
			SetPlayerFacingAngle(playerid, 87.8270); 
			
			//Camera Position Police
			SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203);
			
			//Police Spawn
			SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203);
			
			
			PlayerInfo[playerid][Team] = Cops;
		}
	    case 1:
	    {
			SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313);
			SetPlayerFacingAngle(playerid, 269.7719); 
			SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313);
			SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313);
			PlayerInfo[playerid][Team] = Civilian;
		}
		case 2:
		{
			SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203);
			SetPlayerFacingAngle(playerid, 87.8270);

			//Camera Position Police
			SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203);

			//Police Spawn
			SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203);

			
			PlayerInfo[playerid][Team] = Cops;
		}
  		case 3:
	    {
			SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313);
			SetPlayerFacingAngle(playerid, 269.7719);
			SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313); 
			SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313);
			PlayerInfo[playerid][Team] = Civilian;
		}
	}
	return 1;
}
I added Case 2 and case 3 also adding the AddPlayerClass but it won't show case 2 + 3? Help?!
Reply


Messages In This Thread
Why won't it show all 4? - by BleverCastard - 22.04.2012, 13:52
Re: Why won't it show all 4? - by Rachael - 22.04.2012, 13:54
Re: Why won't it show all 4? - by BleverCastard - 22.04.2012, 13:57
Re: Why won't it show all 4? - by Rachael - 22.04.2012, 14:00
Re: Why won't it show all 4? - by [MG]Dimi - 22.04.2012, 14:01
Re: Why won't it show all 4? - by BleverCastard - 22.04.2012, 14:02

Forum Jump:


Users browsing this thread: 4 Guest(s)