Hello,
I declared an array like this:
dim rocks(rocktotalspawnamt)
then filtered through it assigning variables like this:
for x=1 to rockgroup.type1.spwnamt
rocks(x)=find free object()
next x
then assigned an object to that array like this:
for x=1 to rockgroup.type1.spwnamt
make object rocks(x),rock1msh
next x
and finally positioned it and tried to display its position:
position object rocks(1),0,0,0
set cursor 10,10 : print object position x(rocks(1))
but I get an array subscript error. Any suggestions? I can post the full source if you want.