- Joined
- Jan 9, 2016
- Messages
- 1,487
if ... then
//and you didn't put "endif" , the error will occurs
function ...
//and you didn't put "endfunction", the error will occurs as well
This error occurs only when you forgot to close the block of one thing. Example :
JASS:if ... then //and you didn't put "endif" , the error will occurs function ... //and you didn't put "endfunction", the error will occurs as well
Go and find where did you forget to put the endblock.
library L
function f takes nothing returns nothing
if true then
endfunction
endlibrary
So,where should I put this?
library L
function f takes nothing returns nothing
What should I change the L to?JASS:library L
and f?JASS:function f takes nothing returns nothing
So,where should I put this?