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

Strange error with n00b's edit.


Zetasis
 Share

Recommended Posts

Okay so when ever I edit frmMain on the client I get this error:
http://www.freemmorpgmaker.com/files/imagehost/#49b4a5b5a2115a7c954edc1d32413c67.png
and it says something about specifics being logged in frmMain.log. In the frmMain.log this is what it says:

Line 21: Property Icon in frmMain had an invalid file reference.
Line 2219: Property TextRTF in txtChat had an invalid value.

Here is the sub line 21 is in and 21 is bold:

> Private Sub cmdAAnim_Click()
>     ' If debug mode, handle error then exit out
>     If Options.Debug = 1 Then On Error GoTo errorhandler
>
>     If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then
>      
>         Exit Sub
>     End If
>
> **    SendRequestEditAnimation  <–- Line 20
>                                                 <--- Line 21**
>     ' Error handler
>     Exit Sub
> errorhandler:
>     HandleError "cmdAAnim_Click", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext
>     Err.Clear
>     Exit Sub
> End Sub

And here is the same for Line 2219:

> Private Sub picBank_DblClick()
> Dim bankNum As Long
>
>     ' If debug mode, handle error then exit out
>     If Options.Debug = 1 Then On Error GoTo errorhandler
>
>     DragBankSlotNum = 0
>
>     bankNum = IsBankItem(BankX, BankY)
>     If bankNum <> 0 Then
>         If GetBankItemNum(bankNum) = ITEM_TYPE_NONE Then Exit Sub
>        
>             If Item(GetBankItemNum(bankNum)).Type = ITEM_TYPE_CURRENCY Then
>                 CurrencyMenu = 3 ' withdraw
>                 lblCurrency.Caption = "How many do you want to withdraw?"
>                 tmpCurrencyItem = bankNum
>                 txtCurrency.text = vbNullString
>                 picCurrency.Visible = True
>                 txtCurrency.SetFocus
>                 Exit Sub
>             End If
>          
>         WithdrawItem bankNum, 0
>         Exit Sub
>     End If
>  
>     ' Error handler
>     Exit Sub
> errorhandler:
> **    HandleError "picBank_DlbClick", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext<–-- Line 2219**
>     Err.Clear
>     Exit Sub
> End Sub

I hope this makes sense and if anyone can help it would be greatly appreciated.
Link to comment
Share on other sites

I don't think it means the code's lines.. But rather the form builder lines. :) Open up the FrmMain files in a text editor and copy/pasta that into a line-supporting editor and see if those line numbers make any sense in those files.

The first error means that frmmain is looking for an icon file that doesn't exist though.. :)
Link to comment
Share on other sites

You did it wrong then.. I opened FrmMain.frm in a text editor and that worked just fine. :)

edit: can't show you what I saw, too much code for the forum to handle.. xD
This is the gist of it though:

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/e938e0a067dcfbfe441334828dff0598.png)
Link to comment
Share on other sites

Erkro, stop trying to be a smartass and ready mah editz.

Anyways, I opened it with gedit, the standard text editor Linux uses and got this:
![](http://www.freemmorpgmaker.com/files/imagehost/pics/e938e0a067dcfbfe441334828dff0598.png)
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...