06.05.2018, 21:09
PHP код:
new TEST = 5;
forward decrease();
public decrease()
{
TEST--;
printf("%i", TEST);
return 1;
}
public OnGameModeInit()
{
SetTimer("decrease", 1000, true);
return 1;
}
Edit:
Or maybe like this:
PHP код:
new TEST = 5;
forward decrease(amount);
public decrease(amount)
{
TEST -= amount;
printf("%i", TEST);
return 1;
}
public OnGameModeInit()
{
new amount = 1;
SetTimerEx("decrease", 1000, true, "i", amount);
return 1;
}