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

Simple Page Fix in Shops [EE 2.7+]


Kimimaru
 Share

Recommended Posts

Ever notice how, if you kept your MAX_SHOP_ITEMS at 25, you can move onto the next page if you're on page 5, even though the max pages are supposed to be 5? When you click the arrow to move to page 6, it gives you an error. The error doesn't exit the game or anything, but it's pointless.

Anyway, here's a simple fix to it:

Open up **frmNewShop** in the **Client** source. Find this in **Public Sub showPage(ByVal page As Integer)**:

```
If page < maxpages Then
        cmdNext.Visible = True
    Else
        cmdNext.Visible = False
    End If
```
Change it to this:

```
If page < maxpages And (pageIndex + 1) < (MAX_SHOP_ITEMS / 5) Then
        cmdNext.Visible = True
    Else
        cmdNext.Visible = False
    End If
```
That's all!
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...