Something wrong?
#7

It's how your doing it that is the issue.

PHP код:
if(!ispassenger)
    {
        
SetPlayerArmedWeapon(playerid0);
     
/* 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)) 
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.
Reply


Messages In This Thread
Something wrong? - by NealPeteros - 21.07.2016, 11:10
Re: Something wrong? - by NealPeteros - 21.07.2016, 11:58
Re: Something wrong? - by Threshold - 21.07.2016, 12:09
Re: Something wrong? - by NealPeteros - 21.07.2016, 12:20
Re: Something wrong? - by NealPeteros - 21.07.2016, 12:22
Re: Something wrong? - by NealPeteros - 21.07.2016, 13:20
Re: Something wrong? - by Sew_Sumi - 21.07.2016, 13:52
Re: Something wrong? - by NealPeteros - 21.07.2016, 13:55
Re: Something wrong? - by Sew_Sumi - 21.07.2016, 14:40
Re: Something wrong? - by Sew_Sumi - 22.07.2016, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)