Tomo Posted December 16, 2006 Posted December 16, 2006 I fixed the money cap once before by editing the (int) values in cyberbank.php, bank.php etc but they've reverted back to $2147483647. I've looked around in phpmyadmin and I can't find any files with any variables to change. Any ideas how I can remove/raise this cap? Quote
Tomo Posted December 16, 2006 Author Posted December 16, 2006 Re: Money cap.. They're already bigint(25) should I still change em to 20? Quote
Tomo Posted December 17, 2006 Author Posted December 17, 2006 Re: Money cap.. Sorry for bumping, but I still need help with this. :( Quote
corruption Posted December 17, 2006 Posted December 17, 2006 Re: Money cap.. when i changed my cap awhile back, i was was told to goto into the db and change the int(11) to BIGINT(15) or what ever i wanted it at and then go into the fileĀ for example bank.php then find the lines that contain this =abs((int) and take the (int) completely out, so for example in my bank.php to remove to cap on my withdraw amount i changed $_POST['withdraw']=abs((int) $_POST['withdraw']); to $_POST['withdraw']=abs($_POST['withdraw']); im still new at all this php shit and i dont know if what i did was done correct but it seemed to work so i left it at that lol hope it helpz you some :-D Quote
corruption Posted December 17, 2006 Posted December 17, 2006 Re: Money cap.. i just seen in another forum of how to do this... http://criminalexistence.com/ceforums/index.php?topic=976.0 Quote
corruption Posted December 17, 2006 Posted December 17, 2006 Re: Money cap.. yeah the way DaKingB said to do it in that last forum i just posted a link to seems to work alot better, ill quote it here since the other forum has nothing at all to do with the subject lol i dunno why i posted there to start with :lol: Go through every page and find where the lines say things like: $_POST['bankmoney'] = abs((int) $_POST['bankmoney']); and make them info float lines: $_POST['bankmoney'] = abs((float) $_POST['bankmoney']); Then you just need to change the values in the database from int(11) to bigint(20) Thats how i removed the caps from my money/crystals/bank deposits/withrawals etc. Quote
Tomo Posted December 17, 2006 Author Posted December 17, 2006 Re: Money cap.. All my int values on cyberbank, bank and money are already float. Quote
corruption Posted December 17, 2006 Posted December 17, 2006 Re: Money cap.. did you change the int vaule in the database... from int(11) to bigint(20) :| Quote
Tomo Posted December 17, 2006 Author Posted December 17, 2006 Re: Money cap.. Doesn't matter, I've fixed it. I missed the (int)'s in admin.php, just changed them to float and it's all cool, thanks guys. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.