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

[CS:DE]Client crash when change map


alysson2009
 Share

Recommended Posts

Error: Client.exe has generated errors and will be closed
Moment: When the player change to another map.

I don't know possible script errors, but i think what the error is on HandleMapDone

this is the script

```
Private Sub HandleMapDone()
Dim i As Long
Dim MusicFile As String

On Error Resume Next

    ' player music
    If InGame Then
        MusicFile = Trim$(Map.Music)
        If Not MusicFile = "None." Then
            Play_Music MusicFile
        Else
            Stop_Music
        End If
    End If

    If Not GetPlayerMap(MyIndex) = LastMap Then
    ToNewMap = Trim(Map.Name)
    ToMapTimer = GetTickCount + 255
    ToMapFaderStage = 0
    End If

    LastMap = GetPlayerMap(MyIndex)

    ' now cache the positions
    initAutotiles

    CacheResources

    GettingMap = False
    CanMoveNow = True
End Sub

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