Errors
#8

Is the code right?
Код:
if(GetPlayerClass[playerid] != ARMY_CLASS)
	{
		for(new i; i<sizeof(ArmyVeh); i++)//change 20 to "sizeof(ArmyVeh)" if you want it for all the Army Vehicles..
		{
			if(vehicleid == ArmyVeh[i])
			{
				ClearAnimations(playerid);
				GameTextForPlayer(playerid,"Army Vehicle",3000,4);
			}
		}
	}
	if(GetPlayerClass[playerid] != ARMY_CLASS || GetPlayerClass[playerid] != COP_CLASS)
	{
		for(new i; i<sizeof(PDVeh); i++)//change 20 to "sizeof(ArmyVeh)" if you want it for all the Army Vehicles..
		{
			if(vehicleid == PDVeh[i])
			{
    			SendClientMessage(playerid, COLOR_RED, "Wanted Level Increased");
	    		SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+3);
	    		SetPlayerColor(playerid, COLOR_ORANGE);
	    		if(GetPlayerWantedLevel(playerid) >= 4)
	    		{
	    		    SetPlayerColor(playerid, COLOR_RED);
	    		}
			}
		}
	}
 	if(pInfo[playerid][Adminlevel] != 1)
	{
		for(new i; i<sizeof(AdminVeh); i++)//change 20 to "sizeof(ArmyVeh)" if you want it for all the Army Vehicles..
		{
			if(vehicleid == AdminVeh[i])
			{
				ClearAnimations(playerid);
				GameTextForPlayer(playerid,"Admin Vehicle",3000,4);
			}
		}
	}
I can't enter the other cars..It says Admin Vehicle on the cars on the street
And when i enter the PDVeh as a cop i get wanted level
Reply


Messages In This Thread
[fixed]Errors - by TheKnown - 19.09.2015, 13:22
Re: Errors - by TheKnown - 19.09.2015, 13:44
Re: Errors - by Andre02 - 19.09.2015, 14:30
Re: Errors - by xVIP3Rx - 19.09.2015, 14:45
Re: Errors - by TheKnown - 19.09.2015, 15:26
Re : Errors - by KillerDVX - 19.09.2015, 15:27
Re: Errors - by xVIP3Rx - 19.09.2015, 15:31
Re: Errors - by TheKnown - 19.09.2015, 15:51
Re: Errors - by xVIP3Rx - 19.09.2015, 15:58
Re: Errors - by TheKnown - 19.09.2015, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)