Original Post
Hi
For some odd reason, Visual Basic decides to give me Error 13(Array or user-defined type expected) when this peice of code is executed:
g_d3ddevice.DrawIndexedPrimitive D3DPT_TRIANGLELIST, D3DFVF_VERTEX, Cube_Ver(0), 8, Cube_Ind(0), 36, D3DDP_DEFAULT
Apparently, It is talking about the Cube_ind() variable, which is an integer. I was told Cube_ind() had to be an integer but visual basic says its not supposed to be. So what is wrong with this?