whats going wrong ?
#3

i knw thts why m confused also i think theres somethng wrong with this line

Код:
switch (classid) {
		case 0:
	    {
				GameTextForPlayer(playerid, "~w~Citizen",500, 3);
				if(IsPlayerJob(playerid) == 1)
				{
				GameTextForPlayer(playerid, "~w~ Civilian~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~w~ Civilian~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 1:
	    {
				GameTextForPlayer(playerid, "~b~ FBI",900, 3);
				if(IsPlayerJob(playerid) == 2)
				{
				GameTextForPlayer(playerid, "~b~ FBI ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~b~ FBI ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 2:
	    {
				GameTextForPlayer(playerid, "~b~Medic Cop",900, 3);
				if(IsPlayerJob(playerid) == 3)
				{
				GameTextForPlayer(playerid, "~b~Medic cop ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~b~Medic cop ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 3:
	    {
				GameTextForPlayer(playerid, "~b~ Cops Arms Dealer",5000, 6);
				if(IsPlayerJob(playerid) == 4)
				{
				GameTextForPlayer(playerid, "~b~ Cops Arms Dealer ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~b~ Cops Arms Dealer ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 4:
	    {
				GameTextForPlayer(playerid, "~b~ Army Man",2000, 3);
				if(IsPlayerJob(playerid) == 5)
				{
				GameTextForPlayer(playerid, "~b~ Army Man ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~b~ Army Man ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 5:
	    {
				GameTextForPlayer(playerid, "~p~ Secret Service",900, 3);
				if(IsPlayerJob(playerid) == 6)
				{
				GameTextForPlayer(playerid, "~p~ Secret Service ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~p~ Secret Service ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 6:
	    {
				GameTextForPlayer(playerid, "~b~Cop",2000, 3);
				if(IsPlayerJob(playerid) == 7)
				{
				GameTextForPlayer(playerid, "~b~Cop ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~b~Cop ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		case 7:
     {
				GameTextForPlayer(playerid, "~p~ S.W.A.T",900, 6);
				if(IsPlayerJob(playerid) == 8)
				{
				GameTextForPlayer(playerid, "~p~ S.W.A.T ~n~ ~n~ ~n~ ~n~ ~n~ ~g~ Available for you", 900, 3);
				return 1;
				}
				else
				{
				GameTextForPlayer(playerid, "~p~ S.W.A.T ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ Not available for you", 900, 3);
				return 1;
				}
			}
		}
	return 1;
}
bt thts not my concern now right now i want the Set colors to teams dnt knw wats goin wrong
Reply


Messages In This Thread
whats going wrong ? - by Peter_Parker - 16.04.2010, 10:27
Re: whats going wrong ? - by Thrarod - 16.04.2010, 10:46
Re: whats going wrong ? - by Peter_Parker - 16.04.2010, 11:00
Re: whats going wrong ? - by Peter_Parker - 16.04.2010, 12:36
Re: whats going wrong ? - by biltong - 16.04.2010, 13:12
Re: whats going wrong ? - by Peter_Parker - 16.04.2010, 13:22
Re: whats going wrong ? - by biltong - 16.04.2010, 13:29
Re: whats going wrong ? - by Peter_Parker - 16.04.2010, 13:35
Re: whats going wrong ? - by Peter_Parker - 16.04.2010, 13:42
Re: whats going wrong ? - by Torran - 16.04.2010, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)