Variable that goes down by 1 per second
#4

Use set timer.
Like:

New val;

SetTimer("decreaseval", 1000, true);

This will repeat every 1000 ms = 1 second.

forward decreaseval();
public decreaseval()
{
val--;
return 1;
}
Reply


Messages In This Thread
Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:09
Re: Variable that goes down by 1 per second - by SchurmanCQC - 16.10.2011, 14:10
Re: Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:48
Re: Variable that goes down by 1 per second - by Baboon - 16.10.2011, 14:58
Re: Variable that goes down by 1 per second - by CrazyShooterJoe - 16.10.2011, 14:59
Re: Variable that goes down by 1 per second - by DRIFT_HUNTER - 16.10.2011, 15:01

Forum Jump:


Users browsing this thread: 3 Guest(s)