jifman
02-12-2008, 01:43 AM
hi people,
sorry im having a silly little problem with setting up a 2d array. i've looked at the exam and examples, but i cant fingure out what im missing.
heres the code and error:
global muiltarray = #(#(),#())
num = 0
for p=1 to 5 do(
for c = 1 to 10 do (
muiltarray[p][c] =num
num=num+1
)--end of P
)--end of C
#(#(), #())
0
-- Error occurred in c loop; filename: D:\Program Files\Autodesk\3ds Max 9\Scripts\array_test.ms; position: 111
-- Frame:
-- c: 1
-- called in p loop; filename: D:\Program Files\Autodesk\3ds Max 9\Scripts\array_test.ms; position: 125
-- Frame:
-- p: 3
-- No ""put"" function for undefined
i can see its creating the 2d array, but it doesnt like it when i try to add things to it in this manor, works fine if i input the data myself.
am i defning the 2d array wrong or something?
sorry im having a silly little problem with setting up a 2d array. i've looked at the exam and examples, but i cant fingure out what im missing.
heres the code and error:
global muiltarray = #(#(),#())
num = 0
for p=1 to 5 do(
for c = 1 to 10 do (
muiltarray[p][c] =num
num=num+1
)--end of P
)--end of C
#(#(), #())
0
-- Error occurred in c loop; filename: D:\Program Files\Autodesk\3ds Max 9\Scripts\array_test.ms; position: 111
-- Frame:
-- c: 1
-- called in p loop; filename: D:\Program Files\Autodesk\3ds Max 9\Scripts\array_test.ms; position: 125
-- Frame:
-- p: 3
-- No ""put"" function for undefined
i can see its creating the 2d array, but it doesnt like it when i try to add things to it in this manor, works fine if i input the data myself.
am i defning the 2d array wrong or something?
