• 🏆 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!

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,097
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