Przejdź do głównej zawartości

IsRepeatingTimer

ostrzeżenie

Dodano w wersji omp v1.1.0.2612. Wcześniejsze wersje nie obsługują tego elementu. Typ: funkcja.

Description​

Checks if a timer is set to repeat.

Parameters​

NameDescription
timeridThe 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;
}