• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Leak cleaning problem

Status
Not open for further replies.
Level 2
Joined
Jun 15, 2010
Messages
6
  • Set temppoints[0] = (Center of village <gen>)
  • Unit Group - Pick every unit in (Units in group1 <gen>) and do (Unit Group - Add (Picked unit) to humanpatrol)
  • Unit Group - Order humanpatrol to Attack-Move To temppoints[0]
  • Custom script: call RemoveLocation(udg_tempponts[0])
So I want to clear the leak but it says: "Line 55: Expected a name." I know I forgot something or just fail'd so I'd be happy if anyone helps me.
(I know that the second trigger leaks)
 
Level 2
Joined
Jun 15, 2010
Messages
6
Yes.
  • Set temppoints[1] = (Center of reinforcements <gen>)
  • Unit Group - Order humanpatrol to Move To temppoints[1]
  • Custom script: call removelocation(udg_tempponts[1])
This is an another trigger, now it says: "expected a function name". Strange.
The checker doesn't say anything about "Move To temppoints[1]" so the variable's name is good.
 
Level 7
Joined
Dec 24, 2009
Messages
257
hah, i've tested both of your problems, and I know exactly what your problem is now
The first one: you didn't type your variable's name in the custom script correctly (Your variable's name was temppoint[array] but you typed temppont[array])
The second one: You must type "call RemoveLocation(udg_<variable name>[array]) EXACTLY to the capitalized letters: the letter R in Remove and L in Location must be capitalized
 
Status
Not open for further replies.
Top