• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Memory Leaks - arrays

Status
Not open for further replies.
Hmm, but how can i do loops with costum scripts (cos my point-array has quite a lot Indexes), like:
  • Actions
    • Loop - Actions
      • Costum Script: call RemoveLocation(udg_TempLoc[temp+1])
Does this work ???

EDIT: Or do i have to convert the Integer udg_temp into a string ? But how could i do that in JASS ?
 
It will be exactly what the variable is.. your variable shows "Position[1]" correct? Then it will be
  • Custom script: call RemoveLocation(udg_Position[1])
as stated one post above.. You can also do:

  • For each (Integer A) from 1 to [HOW MANY ARRAYS YOU HAVE], do (Actions)
    • Loop - Actions
      • Custom script: call RemoveLocation (udg_Position[bj_forLoopAIndex])
 
Last edited:
Status
Not open for further replies.
Back
Top