Skip to main content
GameDev.net gamedev.net
🔒 Locked

Indexed Errors

Started by Human_AI Jun 30, 2000 at 2:40 AM 1 replies 350+ views
Original Post
Human_AI
Human_AI
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?
Claus Hansen Ries
Claus Hansen Ries
I know nothing about visual basic, but i think it expects an array passed, not a element. Try remove remove the (0) (or what you do to send an array as argument)

g_d3ddevice.DrawIndexedPrimitive D3DPT_TRIANGLELIST, D3DFVF_VERTEX, Cube_Ver(0), 8, Cube_Ind(0), 36, D3DDP_DEFAULT





Edited by - Claus Hansen Ries on June 30, 2000 9:43:32 AM
Ries
Human_AI
Human_AI
Ahh why didn''t I think of that! It works now, Thanks for the help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.