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

Better Script Error Reporting(No Message Boxes = No server freezes)


evilbunnie
 Share

Recommended Posts

This is pretty simple so go into your server source and replace sub SControl_Error() with

```
Private Sub SControl_Error()
    Dim sError As String

    If Val(GetVar(App.Path & "\Data.ini", "CONFIG", "ScriptErrors")) = 1 Then
        Call AdminMsg("Automated Server Error:  TYPE: " & SControl.Error.Description & vbNewLine & "LINE: " & SControl.Error.Line & vbNewLine & "COLUMN: " & SControl.Error.Column & vbNewLine & "CODE: " & vbNewLine & "    " & SControl.Error.text, WHITE)
    End If

    Err.Clear
End Sub

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