Arkan
Nobody rides for free
- Reaction score
- 92
I wonder if this method is safe? I tested it and it appears to work fine.
The reason I ask is because I have never seen anyone use it.
Do I need to null code?
The reason I ask is because I have never seen anyone use it.
JASS:
function test1 takes nothing returns nothing
call BJDebugMsg("test 1")
endfunction
function testn takes nothing returns nothing
call BJDebugMsg("test n")
endfunction
function blargh takes integer i returns nothing
local timer t = NewTimer()
local code func
if i==1 then
set func = function test1
elseif i==n then
set func = function testn
endif
call TimerStart(t,5,false,func)
endfunction
Do I need to null code?