I get a Runtime Error 380, and it highlights this in ModGameEditors:
frmEditor_Item.chkPierce.Value = .Armor
I have that declared in ModTypes, under the ItemRec as a Boolean on both the client and the server.
This happens when I am in game when I access the item editor for the one item that I had checked (true’d) the chkbox for.
And the code for that chkbox is as follows:
Private Sub chkPierce_Click() ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler If chkPierce.Value = 0 Then chkPierce.Caption = "Pierce: No" ElseIf chkPierce.Value = 1 Then chkPierce.Caption = "Pierce: Yes" End If Item(EditorIndex).Armor = chkPierce.Value errorhandler: HandleError "chkPierce_Click", "frmEditor_Item", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit Sub End Sub
Although I can’t see that being the problem - it does only happen when this chkbox and it’s _Click code is present on the form. What am I missing?