General > Developers Corner
Best way to decrease a value every x sec
(1/1)
XxLMM13xX:
Ok so im trying to make a battery system on a printer and i need a value to decrease by 1 every 13sec
local battery = 100
Thats all i got! I need help making this decrease on the printer HUD!
ex. 100 (3 sec later) 99 (3 more sec later) 98
I have NO idea how to do this!!! PLEASE HELP!
Zmaster:
This is how I'd do it
http://wiki.garrysmod.com/page/timer/Create
See if you can find out how by using that function
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version