- Joined
- Sep 8, 2007
- Messages
- 994
Title says it. Here's the code, don't know what's wrong:
The function will be called, same for the onCountdown function. Already checked that. The timerdialog's handleId is not 0 as well. Any idea?
JASS:
globals
private constant real SELECTION_TIME = 5.
private timer t
private timerdialog td
endglobals
function StartHeroSelection takes nothing returns nothing
set t = NewTimer()
set td = CreateTimerDialog(t)
call TimerDialogSetTitle(td, "Time to choose ")
call TimerDialogDisplay(td, true)
call TimerStart(t, SELECTION_TIME, false, function onCountdown)
endfunction
The function will be called, same for the onCountdown function. Already checked that. The timerdialog's handleId is not 0 as well. Any idea?