Hello, I am having a problem while using Static Ifs on my NewGen World Editor. Whenever and wherever I tend to use static ifs, they always generate compile errors. Yes, I have read the JASS Helper Manual and made the only booleans used constant, used only 'and' or 'not', but it still doesnt work! I even tried using "static if true then"... but, nothing!
Example:
Any help is appreciated, thanks!
PS: I even tried using spells like Prince.Zero's Wrath of Zeus, which uses static ifs, and I keep getting compile errors. I guess it is something wrong with my Editor. I tried reinstalling it already, though.
Example:
JASS:
function TestStuff takes nothing returns nothing
local unit Temp = CreateUnit(Something Here...)
static if true then
call KillUnit(Temp)
endif
set Temp = null //hehe, can't forget this, even in test functions :P
endfunction
Any help is appreciated, thanks!
PS: I even tried using spells like Prince.Zero's Wrath of Zeus, which uses static ifs, and I keep getting compile errors. I guess it is something wrong with my Editor. I tried reinstalling it already, though.