Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
array members
array members
02-11-2008, 10:57 PM
#1
midiway
On a struct, if I have an array member, let's say with size of 5
JASS:
struct
unit
array
MemberToTest
[
5
]
endstruct
What is the range of index that I will can acess?
0-4 or 0-5
*** It's not documented on the jasshelpermanual.html
02-11-2008, 11:09 PM
#2
TaintedReality
Edit: Oops, misread. But 0-4 would make sense, and Vex usually makes sense.
02-11-2008, 11:09 PM
#3
MaD[Lion]
the number u specify in ur declaration means: 5 instances. Therefore its 0-4
0 1 2 3 4
5 elements :)
Thats why he described 8191/arraymember is the limit of structs of this type u can have.
02-11-2008, 11:14 PM
#4
midiway
thks
+rep