Kimimaru Posted October 28, 2009 Author Share Posted October 28, 2009 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 More sharing options...
kris_hole Posted October 28, 2009 Share Posted October 28, 2009 lol i cant say i've ever had that big of a shop XD Link to comment Share on other sites More sharing options...
Kimimaru Posted October 28, 2009 Author Share Posted October 28, 2009 I just decided to try it out one day, and I saw that this happened, lol. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now