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