tsuki Posted July 28, 2011 Author Share Posted July 28, 2011 I'm trying to use this function:``` If Player(MyIndex).Class = 1 Then frmMain.lblClassx.Caption = "Class 1" Else frmMain.lblClassx.Caption = "Class 2" End If```But the caption displayed was always "Class 2"So I changed the "class 2" to player(myindex).class and the value displayed is 0Why the value returned with player(myindex).class is always 0? :sad:There's a way to get the class number? '-' Link to comment Share on other sites More sharing options...
Greendude120 Posted July 28, 2011 Share Posted July 28, 2011 > Function GetPlayerClass(ByVal Index As Long) As Long^ is this what you want? Its already a function on your EO 2.0 client.You can use it as such:If GetPlayerClass(Index) = 0 Then_the class # is 0_ Link to comment Share on other sites More sharing options...
tsuki Posted July 28, 2011 Author Share Posted July 28, 2011 @Greendude120:> ^ is this what you want? Its already a function on your EO 2.0 client.> > You can use it as such:> If GetPlayerClass(Index) = 0 Then> _the class # is 0_what I want is display the number of the class at the client sidebut when I use the player(myindex).class the only value returned is 0 Link to comment Share on other sites More sharing options...
RyokuHasu Posted July 28, 2011 Share Posted July 28, 2011 Myindex is only for Client side Link to comment Share on other sites More sharing options...
tsuki Posted July 28, 2011 Author Share Posted July 28, 2011 @RyokuHasu:> Myindex is only for Client side> what I want is display the number of the class at the client side Link to comment Share on other sites More sharing options...
Greendude120 Posted July 28, 2011 Share Posted July 28, 2011 Since your displayging it client side and the function i posted is client side. it will work…frmMain.lblMyClass.Caption = "" & GetPlayerClass(MyIndex)This will make MyClass label display your class number.I think you can set it up without the quotes too i forget.like: frmMain.lblMyClass.Caption = GetPlayerClass(MyIndex)one of them should work Link to comment Share on other sites More sharing options...
tsuki Posted July 28, 2011 Author Share Posted July 28, 2011 @Greendude120:> Since your displayging it client side and the function i posted is client side. it will work…> > frmMain.lblMyClass.Caption = "" & GetPlayerClass(MyIndex)> > This will make MyClass label display your class number.> > I think you can set it up without the quotes too i forget.> like: frmMain.lblMyClass.Caption = GetPlayerClass(MyIndex)> > one of them should workthe GetPlayerClass(MyIndex) and Player(MyIndex).Class are the same.in the both cases, the caption displayed is 0 for all characters with different classes Link to comment Share on other sites More sharing options...
Notsu Posted July 28, 2011 Share Posted July 28, 2011 I have the same problem, anyone know how to do this? Link to comment Share on other sites More sharing options...
tsuki Posted July 29, 2011 Author Share Posted July 29, 2011 No one can help me? :sad:(sorry by the up posting) Link to comment Share on other sites More sharing options...
Domino_ Posted September 3, 2011 Share Posted September 3, 2011 I have the same problem… >.> xD I need to display class name in Character profile Link to comment Share on other sites More sharing options...
Yxxe Posted September 3, 2011 Share Posted September 3, 2011 Send the class number / class name when their character data is sent on login. 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