[SM] Plugin "[OS]FightArenaV2.smx" encountered error 23: Native detected error
[SM] Invalid timer handle adc0046c (error 3) during timer end, displayed function is timer callback, not the stack trace
[SM] Unable to call function ".9576.Timer_Duration" due to above error(s).
//
//
//
//============================
//Продолжительность битвы(игры)
//============================
void OnTimerDuration()
{
g_hGameDuration.GetValue(g_sGameName, g_fTimeDuration);
if(g_fTimeDuration > 0.0)
{
delete g_hTimerDuration;
g_hTimerDuration = CreateTimer(1.0, Timer_Duration, _, TIMER_REPEAT);
PrintHintTextToAll("● %s ●\n==============================\n● До конца битвы %.1f сек ●\n==============================", g_sGameName, g_fTimeDuration);
}
}
Action Timer_Duration(Handle timer)
{
g_fTimeDuration -= 1.0;
PrintHintTextToAll("● %s ●\n==============================\n● До конца битвы %.1f сек ●\n==============================", g_sGameName, g_fTimeDuration);
if(g_fTimeDuration <= 0.0)
{
OnPlayerCheckHP();
g_hTimerDuration = null;
return Plugin_Stop;
}
return Plugin_Continue;
}