Passa al contenuto principale

GetTimerRemaining

Avviso

La funzione è stata aggiunta nella versione omp v1.1.0.2612 e non funziona nelle versioni precedenti!

Description​

Gets the remaining interval of a timer.

Parameters​

NameDescription
timeridThe ID of the timer to get the remaining interval of.

Return Values​

Returns the remaining interval of the timer in milliseconds.

Examples​

new g_Timer;

public OnGameModeInit()
{
g_Timer = SetTimer("TimerCallback", 60000, true);

new remainingInterval = GetTimerRemaining(g_Timer);
printf("Timer ID %d remaining interval: %d ms", g_Timer, remainingInterval);
return 1;
}