• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Static Ifs Compile Error

Status
Not open for further replies.
Level 5
Joined
Oct 24, 2007
Messages
90
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:

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. :(
 
Status
Not open for further replies.
Top