Problems with custom script

Status
Not open for further replies.

Luu

Luu

Level 6
Joined
Feb 11, 2021
Messages
45
I can't insert the custom script. Did I write it wrong? I would like help to solve this.

WhatsApp Image 2024-10-18 at 17.20.51.jpeg
 
I can't insert the custom script. Did I write it wrong? I would like help to solve this.

View attachment 492257
Click JassHelper at the top menu and click "Enable JassHelper".

Also, you should be calling that Custom Script inside of the For Loop, right beneath the Special Effect. You're leaking TempPoint 49 times.

The rule for these leaks:
Set, Use, Remove.

Never Set until you've removed the previous one.
 
Last edited:
Based on the syntax error, you might also have your map's script language set to Lua. You can modify it in Scenario > Map Options.
LuaScriptLanguage.png


If that is the case, you might want to try switching it to JASS (since JASS uses the "call" syntax, whereas Lua omits call/set). Or you can just change your script to Lua by just removing the "call":
  • Custom script: RemoveLocation(udg_TempPoint)
 
Status
Not open for further replies.
Back
Top