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!
See the red square. It's trying to help you with the bugs you're having, that's the use of the compiler, point you syntax errors.
I don't know if you're familiar with programming languages or the problem is with JASS itself. Either way, I suggest you give it a try and read about it a bit.
If you're using GUI these syntax errors don't make much sense. Can you show the whole trigger you're trying to do? Maybe it will make it more easy to help.
Also, local variables can only be declared at the top of the functions. Example
Correct:
JASS:
function foo takes nothing returns nothing
local unit f
local integer o
call BJDebugMsg("bar")
endfunction
Incorrect:
JASS:
function foo takes nothing returns nothing
local unit f
call BJDebugMsg("bar")
local integer o //must go before any function calls or if statements
endfunction
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.