• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] PointLeaks-Removing Point[array]

Status
Not open for further replies.
Level 5
Joined
Jan 16, 2017
Messages
67
Hi,
I do know how to remove leaks of normal point variables, but I never found a solution for point[array]'s.
I tried defining an int variable and just put it in the brackets but it didn't work:

upload_2017-1-24_19-23-55.png

Can someone tell me how it's done? I've pointed a red arrow at my attempt.

thank you
 

Attachments

  • upload_2017-1-24_19-23-43.png
    upload_2017-1-24_19-23-43.png
    4.4 KB · Views: 53
You're forgetting the second udg in front of ScottyArray: call RemoveLocation(udg_Scottypoint[udg_ScottyArray])

Remember that udg stands for user defined global. Any global variable made from the Variable Editor is a udg, so anytime you are working with custom script or JASS, you must always put the udg_ prefix before the name of the variable.
 
Status
Not open for further replies.
Back
Top