There is a trigger, whose task - at the end of the timer to zero the variable of the whole type. The timer starts all right, and the trigger to reset the variable does not work.
Code:
function Trig_ResetP1_Actions takes nothing returns nothing
set udg_tk[1] = 0
call DestroyTimer(udg_tkk[1])
endfunction
//===========================================================================
function InitTrig_ResetP1 takes nothing returns nothing
set gg_trg_ResetP1 = CreateTrigger( )
call TriggerRegisterTimerExpireEvent(gg_trg_ResetP1, udg_tkk[1])
call TriggerAddAction( gg_trg_ResetP1, function Trig_ResetP1_Actions )
endfunction