- Joined
- Oct 9, 2015
- Messages
- 721
First, it's not the same error, it's another error.Corrected syntax, same error:
[...]
else
local unit u
endif
I didn't saw the difference on them, sorry. I'm using gui and trying to implement a unit recycler on my map but I'm having no success.
function foo takes nothing returns nothing
local unit f
local integer o
call BJDebugMsg("bar")
endfunction
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