Fuel System
#1

I was working on the fuel system, so I had a problem. I want to make the fuel originally 10.00 and 00.20 every 10 seconds reduced.

example: fuel beginning 10.00 then I walk for 10 seconds then my fuel left over 09.80 . How to ?
Reply
#2

You can use a float.
Read more about floats here: https://sampwiki.blast.hk/wiki/Floats
Reply
#3

Can You Give me example with my case ?
Reply
#4

Well uh.. probably

new Float:Fuel = 10.00;

and to lower it you could use
Fuel -= 00.20;
Reply
#5

Thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)