Why Doesn't This Work

Blitz3D Forums/Blitz3D Programming/Why Doesn't This Work

vorton(a)=loadmesh ("media\vorton.x)

Is missing a double quote before the ')'.

next a

Should just be 'next'. There's no need to specify the index variable used.

dim vorton(5)

You've dimensioned one more array element than you actually use. You need to specify the highest array element index in the 'Dim' statement, rather than the total number of elements to be created.

The value returned by LoadMesh is not an object pointer, it's an entity handle. Entity handles are just integer numbers and can be stored anywhere you can store an integer value, including an integer array. Object pointers are the pointer values returned when you use the 'New' command to create a new 'Type' element. These can only be stored in variables, array elements, Type fields, etc, of the declared object type.