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

Bank glitch


Chris2
 Share

Recommended Posts

when i withdraw currency from my bank. as an example lets say 400.000 gold

it will only withdraw a random number like 5000

my bank withdraw looks like

```
' bank
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
Err.Clear
Exit Sub
End Sub

```
i can't see the error :/
Link to comment
Share on other sites

> yea i already found PicCurrency but i dont know what the issue is  :)

Based on Stein's advice, search your _code _using search term "PicCurrency" to find where the error is. He doesn't mean it's visually or literally on the picture, but that it happens where the code for PicCurrency is.
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...