• 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.

JASSHelper - Is this a bug?

Status
Not open for further replies.
Can any help fix this bug?I don't know where to put the endblock or where's the file that needed to be edited.Does it have anything to do with my map?
 

Attachments

  • Error.png
    Error.png
    65.9 KB · Views: 128
Level 11
Joined
Dec 19, 2012
Messages
411
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.
 
Level 17
Joined
Dec 11, 2014
Messages
2,004
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.

This.

Also the same goes to endloops. If you have used vJASS too, check for endlibrary, endstruct, endmethod, endscope, endEVERYTHING as well.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
It is, you can basically make something like this

JASS:
library L
    function f takes nothing returns nothing
        if true then
    endfunction
endlibrary

this script will be placed pretty high up in the map, yet it will still pop the error in the config, because the compiler is confused and doesnt know how to recover from this, he just keeps going
 
Status
Not open for further replies.
Top