• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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