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

[Solved] JassHelper went awol

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
I was making a JASS code and, all of a sudden when i save, i get this error

"Missing: endblock"

JASS:
// Trigger: NumberEncrypter
//
// checksum=StringHash(StringCase(GetPlayerName(player)+PLAYER_CHECKSUM_SALT,false))
// if (0>checksum) then
//     set checksum=-checksum
// endif
// minChecksum=R2I(maxChecksum*CHECKSUM_VARIANCE)
// checksumRange=maxChecksum-minChecksum
// checksum=checksum-checksum/checksumRange*checksumRange+minChecksum

First of all, that entire thing is a comment. Second of all, i wasnt even touching that. What happened...

we/ Google says i forgot to end an "if then else" or a loop. Disabling all JASS triggers i manually made produces thise rror

Syntax Error : unexpected: "in"?

set in = in + 1

(yes its an initialiezd variable)
 
Last edited:
Level 19
Joined
Aug 8, 2007
Messages
2,765
Sometimes JassHelper will throw an error for the wrong area. Are you able to post the map? Either it is something else or your JassHelper is not working properly. (in which case, you may want to redownload JassHelper)

i re-dled jasshelper and it still does that. ill post the map momentarily, as I also need to post it for another error

/e fixed. i had accidently declared a global called "in" and it was a different type than the "in" in that trigger and they were messing up

idk what that Missing : Endblock stuff was tho
 
Last edited:
Status
Not open for further replies.
Top