• 🏆 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!

Compile error

Status
Not open for further replies.
I'm getting this when i try to save my map:

Code:
//===========================================================================
// Trigger: 
//===========================================================================
function Trig__Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_ takes nothing returns nothing
    set gg_trg_ = CreateTrigger(  )
    call TriggerAddAction( gg_trg_, function Trig__Actions )
endfunction

//===========================================================================

What's wrong? I don't have an unnamed trigger anywhere!



EDIT: I checked it, tried to remove every trigger one by one and save, but the error remains. It seems to be some kind of invisible trigger!
 
Last edited:
I took some drastical measures on this, and extracted the map script using an MPQ editor. I then removed the invisible trigger and reimported the script.
Still, when i open the map, a warning shows up (it has always done) - that the trigger function "GetOwningPlayer" does not exist.
When i save the map again, the invisible empty trigger is reborn.

I do have some jass snippets using GetOwningPlayer, but they are all syntax correct and should work properly.

SO WHAT IS WRONG?!?!?! D:
 
Status
Not open for further replies.
Top