21.07.2016, 13:52
It's how your doing it that is the issue.
If !ispassenger elseif IsAnAmbulance. I'm sure you want to go through and check your structure overall where these errors are occuring because it's needing to be looked at.
I'm thinking that because you have weird check orders, it will be a buggy check overall.
Definitely to do with the { } and the flow of your code in those areas. This is where indentation, and code folding come in handy in editors.
PHP код:
if(!ispassenger)
{
SetPlayerArmedWeapon(playerid, 0);
/* else if(IsAPizzaCar(vehicleid))
{
if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+1.3);
PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
RemovePlayerFromVehicle(playerid);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not a Pizza Boy!");
}
}*/
else if(IsAnAmbulance(vehicleid))
I'm thinking that because you have weird check orders, it will be a buggy check overall.
Definitely to do with the { } and the flow of your code in those areas. This is where indentation, and code folding come in handy in editors.