Command engine doesn't work because another value
#6

pawn Код:
if(vInfo[i][vehicleFuel] >= 1)
        {
            if(vInfo[i][vehicleTires] == 4)
            {
                if(vInfo[i][vehicleEngine] == 1)
                {
                    SetVehicleParamsEx(GetPlayerVehicleID(playerid),1,lights,alarm,doors,bonnet,boot,objective);
                }
            }
        }
What this is saying is "If the fuel is greater than 1, always keep the car on."
Using "SetVehicleParamsEx(GetPlayerVehicleID(playeri d),1,lights,alarm,doors,bonnet,boot,objective); "
keeps the car on even if the player uses /engine
The player only should control the engine, but it is automatically kept on. Find a way to fix it.

I think you should remove that part of the code then it'll be fixed.
Reply


Messages In This Thread
Command engine doesn't work because another value - by Zeus666 - 15.04.2018, 11:23
Re: Command engine doesn't work because another value - by doodlebob666 - 15.04.2018, 11:30
Re: Command engine doesn't work because another value - by Zeus666 - 15.04.2018, 11:38
Re: Command engine doesn't work because another value - by doodlebob666 - 15.04.2018, 11:43
Re: Command engine doesn't work because another value - by Zeus666 - 15.04.2018, 11:47
Re: Command engine doesn't work because another value - by doodlebob666 - 15.04.2018, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)