• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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