Weird bug with fuel system
#3

It's not a weird bug, you are looping through all players; checking if they are in a vehicle, checking if they are driver and then processing it.

What you probably want to do is have the fuel decrease for all vehicles where the engine is on. This can be done by instead looping through all vehicles, checking if their engine is on and decreasing the fuel accordingly. You also don't check if the vehicle's engine is on(not sure if you forgot about this or not - the fuel will go down even if the engine is off).
Reply


Messages In This Thread
Weird bug with fuel system - by dan40o - 03.10.2015, 12:09
Re: Weird bug with fuel system - by dan40o - 03.10.2015, 16:05
Re: Weird bug with fuel system - by Abagail - 03.10.2015, 16:23
Re: Weird bug with fuel system - by dan40o - 03.10.2015, 16:41
Re: Weird bug with fuel system - by d1git - 03.10.2015, 18:01
Re: Weird bug with fuel system - by dan40o - 03.10.2015, 18:53
Re: Weird bug with fuel system - by Abagail - 03.10.2015, 19:01
Re: Weird bug with fuel system - by d1git - 04.10.2015, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)