Nherwyziant
Be better than you were yesterday :D
- Reaction score
- 96
JASS:
//Here is an example...
scope Test
private struct Struct
private timer t
private real r
private static method M1 takes nothing returns nothing //Needs to be static because of the timer.
local Struct this //I need this to have my data.
call BJDebugMsg("1") //This message seems to be showing...
call BJDebugMsg(R2S(.r)) //This message tell always0.
call BJDebugMsg("2") //While this one, does not...
endmethod
private static method onInit takes nothing returns nothing
local Struct this = Struct.allocate()
set .t = CreateTimer()
set .r = GetRandomReal(0,1000)
call TimerStart(.t,.03125,true,function Struct.M1)
endmethod
endstruct
endscope
//I'm sure that .r is the prob, so how to fix this?