dudeim
New Member
- Reaction score
- 22
Hey,
ok so I'm having a problem with array struct members.
So am I doing something wrong or is it impossible to have array struct members for each instance or something? as that would be rather stupid.
Thanks
ok so I'm having a problem with array struct members.
JASS:
//creating a random struct with struct array member
struct test
real array value[25] //so this is a simple real array with 25 indexes (or instance dunno precisly but doesn't matter)
endstruct
//ok now i'm gonna use another function to set values to the struct
function init takes....
local test a = test.create()
local test b = test.create()
//now i'm gonna set the values
set a.value[1] = 1
set b.value[1] = 2
call BJDebugMsg(R2S(a.value[1])) //displays 2 while it has to be 1
call BJDebugMsg(R2S(b.value[2])) //displays 2
endfunction
So am I doing something wrong or is it impossible to have array struct members for each instance or something? as that would be rather stupid.
Thanks