• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Array syntax in Custom Script

Status
Not open for further replies.
Level 8
Joined
Mar 26, 2009
Messages
301
  • call RemoveLocation (udg_LOC_NAME[Integer A])
Integer A above is the local integer variable of trigger editor. I am trying to remove a location leak here but what is typed above is wrong and WE gives error for that. How can I refer to array with Integer A (in custom script)?
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
Integer A is not local and called bj_forLoopAIndex or GetForLoopIndexA() in jass and this has nothing to do with arrays in general. You can also store your location in another non-array variable temporarily and use this one to avoid writing arrays or Integer A in jass.
 
Status
Not open for further replies.
Top