Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO2]player(myindex).class


tsuki
 Share

Recommended Posts

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 0

Why 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

@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 side
but when I use the player(myindex).class the only value returned is 0
Link to comment
Share on other sites

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

@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 work

the 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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...