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

CS:DE Bank System


JohnPony
 Share

Recommended Posts

  • 1 month later...
yo you got an error, when you try to withdraw, it don't withdraw anything…

Edit:
NVM i fixed it.

Replace the everything in Sub Bank_DblClick with
```
Dim bankNum As Long

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    bankNum = IsBankItem(GlobalX, GlobalY)
    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
                frmMain.lblCurrency.Caption = "How many do you want to withdraw?"
                tmpCurrencyItem = bankNum
                frmMain.txtCurrency.Text = vbNullString
                frmMain.picCurrency.visible = True
                frmMain.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

```
Link to comment
Share on other sites

Sounds like one of CS:DE's famous render engine bugs. Texture Corruption, it happens and unfortunately happens at random ocassions(seemingly, in reality it is based on your hardware somehow). It can happen any time to pretty much anyone. There's really no proper way around it aside from trying to mess about.

Or you did something horribly wrong. :D

EDIT: On a sidenote, messing about may make it work for you. But chances are it will still crash on other systems!
Link to comment
Share on other sites

I'm going to lock this topic, and for one simple reason. I'm not going to support this tutorial, nor a person using a engine that is essentially broken. Please just move on the latest nightly release, pretty much anything from CS:DE is usable in there, at the worst with minor modifications. Anyone who PMs me for further support with the CS:DE engine, or this tutorial will be permanently blocked from messaging me.

Regards,
General Pony
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...