blkcrow Posted January 24, 2012 Author Share Posted January 24, 2012 i am trying to display the player's class so i am using something like this```class(player(index).class).name```so the problem is whenever the players class is 0 i get a subscript out of range error and vb6 crashes. i cant seem to get why this is happening everything seems right to me Link to comment Share on other sites More sharing options...
Ruins of Hell Posted January 24, 2012 Share Posted January 24, 2012 I think that ClassRec is from 1 to the number of classes. So try;```Class(GetPlayerClass(Index)).Name``` Link to comment Share on other sites More sharing options...
blkcrow Posted January 25, 2012 Author Share Posted January 25, 2012 i thought that will be the problem too but the class array is defined like this```Public Class() As ClassRec``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now