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

A few errors


anasky
 Share

Recommended Posts

I might have asked this before, but, when I open the Client, he gives a shitload of errors, most of them contain this:
'Error occured during load'.
Then, when I try to run it, he errors at this line:
frmMainMenu

Private Sub Form_Load()
    Dim i As Long
    Dim Ending As String

    For i = 1 To 3
        If i = 1 Then
            Ending = ".gif"
        End If

        If i = 2 Then
            Ending = ".jpg"
        End If

        If i = 3 Then
            Ending = ".png"
        End If

        If FileExists("GUI\MainMenu" & Ending) Then
            frmMainMenu.Picture = LoadPicture(App.Path & "\GUI\MainMenu" & Ending)
        End If
    Next i

    Ending = ReadINI("CONFIG", "MenuMusic", App.Path & "\config.ini")
    If LenB(Ending) <> 0 Then
        **Call MenuMusic.PlayMedia(App.Path & "\Music\" & Ending, True)**
    End If

    Call MainMenuInit
End Sub

I really hope anyone knows how to fix this, at it errors at each PlayMedia, and I don't feel like removing the entire music system out of the game.
Link to comment
Share on other sites

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...