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

Crashing server on adding shop


QCherry
 Share

Recommended Posts

Hi,

I have game on EO 3 source, and have a big problem, when adding new shop and click OK server give me this Run-Time error '9'

![](http://i.imgur.com/Y56jKT5.png)

I debug server and have this

![](http://i.imgur.com/xUrXlzj.png?1)

( CopyMemory ByVal VarPtr(Shop(shopNum)), ByVal VarPtr(ShopData(0)), ShopSize ) line
Link to comment
Share on other sites

I replace TradeItemRec in server this code:

```
Private Type TradeItemRec
    Item As Long
    ItemValue As Long
    Bonus As Byte
    Rank As Byte
    CostItem As Long
    CostValue As Long
End Type
```And on click Shops editor in admin panel, crash CLIENT debug:

                frmEditor_Shop.lstTradeItem.AddItem I & ": " & .ItemValue & "x " & Trim$(Item(.Item).Name) & " for " & .CostValue & "x " & Trim$(Item(.CostItem).Name)

this line (error runtime 9' subscript out of rage)
Link to comment
Share on other sites

Okay,

I change in server this:

```
Private Type TradeItemRec
    Item As Long
    ItemValue As Long
    itembonus As Byte
    ItemRank As Byte
    costitem As Long
    costvalue As Long
End Type
```itembonus and itemrank to byte and crashes client same before post
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...