Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class-Specific Background
#1
I am attempting to make a feature where the GUI changes dependent on the player's class, but I keep getting RTE9.

In my FrmMirage frmLoad sub -
Code:
If GetPlayerClass(Index) = 0 Then
        picBackground.Picture = LoadPicture(App.Path & "\gfx\gui\ingame\warrior\ingame.bmp")
    End If

When run IDE it highlights

Code:
Function GetPlayerClass(ByVal Index As Long) As Long
    GetPlayerClass = Player(Index).Class
End Function

Specifically,
Code:
GetPlayerClass = Player(Index).Class

Any help/nudges in the right direction would be greatly appreciated Wink

I don't doubt I'm missing something painfully obvious :roll:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)