note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
IsRepeatingTimer
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Checks if a timer is set to repeat.
Parameters
Name | Description |
---|---|
timerid | The ID of the timer to check. |
Return Values
true: Timer is a repeating timer.
false: Timer is not a repeating timer.
Examples
new g_Timer;
public OnGameModeInit()
{
g_Timer = SetTimer("TimerCallback", 60000, true);
if (IsRepeatingTimer(g_Timer))
{
// Do something
}
return 1;
}
Related Functions
- SetTimer: Set a timer.
- SetTimerEx: Set a timer with parameters.
- KillTimer: Stop a timer.
- IsValidTimer: Checks if a timer is valid.
- CountRunningTimers: Get the running timers.