Author Topic: money maxes out  (Read 2675 times)

Offline dcd119

money maxes out
« on: September 26, 2006, 08:14:46 am »
I am on a forum where we have appeared to reach the max amount displayed by the shop software, where can I change it?

2147483647


this shows in show all Richest Members (Bank) & Richest Members (pocket), and also in money in pocket, and money in bank, however when I go into the admin area it has the actual amount..

whats up?
« Last Edit: September 26, 2006, 08:17:52 am by dcd119 »

Offline Daniel15

Re: money maxes out
« Reply #1 on: September 26, 2006, 12:25:57 pm »
Most likely, that's the maximum limit of a 32-bit integer (which is used internally). I'll have a look through the code and see if I can allow higher values (most likely by using float values instead).

EDIT: Here's the fix. Please tell me if it works for you.
« Last Edit: September 26, 2006, 12:44:37 pm by daniel15 »

Offline dcd119

Re: money maxes out
« Reply #2 on: September 26, 2006, 12:39:00 pm »
I had to reset everyones credits

Offline Daniel15

Re: money maxes out
« Reply #3 on: September 26, 2006, 12:45:45 pm »
You reset everyone's credits? How come?
Anyways, I've linked to the fix above (http://server.daniel15.com/cgi-bin/viewvc.cgi/smfshop/trunk/shop/Shop.php?r1=13&r2=21). Please change that one line in Sources/shop/shop.php, and tell me if it works for you.

Offline dcd119

Re: money maxes out
« Reply #4 on: September 26, 2006, 12:47:16 pm »
I reset everyones credits because everyone was maxed out, when you break something, somehow it has to be fixed....lol