- Joined
- Oct 31, 2010
- Messages
- 238
Hey, I was coding my own function when I realize that it failed...
Didn't work but when I do this:
it works! When I use the trigger name, it works.. And when i use Trigger t it failed... Someone help?
JASS:
private function onInit takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerAddAction( t, function helloworld )
endfunction
Didn't work but when I do this:
JASS:
private function onInit takes nothing returns nothing
set gg_trg_hello_world = CreateTrigger()
call TriggerAddAction( gg_trg_hello_world, function helloworld )
endfunction
it works! When I use the trigger name, it works.. And when i use Trigger t it failed... Someone help?