- Joined
- May 24, 2016
- Messages
- 339
I guess it might be a problem, that Im using global timer for some functions.
IDK. I guess that because of some strange bugs
So the thing is, I declared a global timer T for instant functions (for avoid declaring local timer every time)
you know, like that
But you know, I'm not sure about it now.
IDK. I guess that because of some strange bugs
So the thing is, I declared a global timer T for instant functions (for avoid declaring local timer every time)
you know, like that
JASS:
function GetCalledPaladinKnight takes nothing returns nothing
set T = GetExpiredTimer()
set I = GetHandleId(T)
set I2 = LoadInteger(Hash,I,0) //I
if GameOver != true then
call MsgP(GetPlayerId(Player(I2)), "The Paladin Knight is called to serve you." ,5.)
call TimerStart(T,6,false,function SpawnPaladinKnight)
else
//call echo("game is ended")
call FlushChildHashtable(Hash,I)
call DestroyTimer(T)
endif
endfunction