BRUTAL
I'm working
- Reaction score
- 118
When I try to put 'static' in front of certain if conditions, I get a syntax error saying nothing more then "syntax error."
I have no idea why it doesn't work, I've looked at peoples examples so I think I'm not doing anything wrong.
Here is an example code where I get an error.
I have no idea why it doesn't work, I've looked at peoples examples so I think I'm not doing anything wrong.
Here is an example code where I get an error.
JASS:
scope test initializer qwe
globals
boolean B=true
endglobals
private function a takes nothing returns nothing
static if B then
call BJDebugMsg("true")
endif
endfunction
private function qwe takes nothing returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,Player(0),"go",true)
call TriggerAddAction(t,function a)
endfunction
endscope