Satans_Pimp Posted August 30, 2007 Posted August 30, 2007 NOOB ALERT!!!!! :evil: how do i remove the cap from the bank? thanks :-D Quote
Danny Posted August 30, 2007 Posted August 30, 2007 Re: BANK cap V2 isnt it in the code some where u can edit Quote
seanybob Posted August 30, 2007 Posted August 30, 2007 Re: BANK cap V2 off the top of my head... change $_POST['deposit']=abs((int) $_POST['deposit']); to $_POST['deposit']=abs($_POST['deposit']); and $_POST['withdraw']=abs((int) $_POST['withdraw']); to $_POST['withdraw']=abs($_POST['withdraw']); Quote
Satans_Pimp Posted August 30, 2007 Author Posted August 30, 2007 Re: BANK cap V2 Thank you Seanybob +1 :-D Quote
Absolute Zero Posted August 30, 2007 Posted August 30, 2007 Re: BANK cap V2 For future reference remove (int) from the equation :-) Quote
gurpreet Posted October 20, 2007 Posted October 20, 2007 Re: BANK cap V2 I have a problem :( I followed what seany said, but it says you have (a higher amount than cap) in your bank. When i click city bank it says withdraw 2147483647, which is the cap. Please help me. Quote
YoungGold Posted October 21, 2007 Posted October 21, 2007 Re: BANK cap V2 * younggold abngs his hea don the table countless times.... what is it with noobs who come here expecting everything to be done for them................... LEARN how to code or take your game down cause it will be pointless. Quote
HITMAN 17 Posted November 13, 2007 Posted November 13, 2007 Re: BANK cap V2 this worked for me except for when i withdraw the money it goes - can some body tell me whats wrong and the code for it to be fixed or edited Quote
UCC Posted November 14, 2007 Posted November 14, 2007 Re: BANK cap V2 Step Away from the Computer and do not return until you get the game idea out of your head. DB Change BigInt 20 required Quote
HITMAN 17 Posted November 14, 2007 Posted November 14, 2007 Re: BANK cap V2 wat do i look for in database Quote
HITMAN 17 Posted November 14, 2007 Posted November 14, 2007 Re: BANK cap V2 well i changed bank money to wat u said and still makes it - can isomer help may be Quote
UCC Posted November 14, 2007 Posted November 14, 2007 Re: BANK cap V2 There are Two reasons for the 2.1B issue. What Seany said and what I said. If you still have the problem, then you are doing something wrong. My original response was in response to gurpreet. If you are going negative, then you are withdrawing more money than you have and/or you have also not addressed the Int issues above. Quote
Godhand Posted November 15, 2007 Posted November 15, 2007 Re: BANK cap V2 Check your withdrawals formula to make sure $withdraw is not more then your $bank . Quote
HITMAN 17 Posted November 15, 2007 Posted November 15, 2007 Re: BANK cap V2 ywe thnx it works now lol thnx everyone Quote
HITMAN 17 Posted November 17, 2007 Posted November 17, 2007 Re: BANK cap V2 also this applies for cyber bank Quote
Godhand Posted November 17, 2007 Posted November 17, 2007 Re: BANK cap V2 Yup just do the check for $cybermoney instead of the bank. Quote
MaKaVeLi Posted February 9, 2008 Posted February 9, 2008 Re: BANK cap V2 You can leave (int) in the coding if you change the database table from int to bigint 25 or higher. This will allow php coding to max game money at 9.2 Quintillion. If you want it higher than that there is also more that can be done as well. Quote
Ragnar Posted February 26, 2008 Posted February 26, 2008 Re: BANK cap V2 You can leave (int) in the coding if you change the database table from int to bigint 25 or higher. Just doing for example ALTER TABLE `crystalmarket` CHANGE `cmPRICE` `cmPRICE` BIGINT( 25 ) DEFAULT '0' NOT NULL doesn't cut it. It still lists them at 2147...unless in the script you do a few small changes, changing int to float... $each= (float) $r['cmPRICE'] / $r['cmQTY']; $_POST['amnt'] = abs((float) $_POST['amnt']); $_POST['price'] = abs((float) $_POST['price']); Then it's pro massive inflation! Quote
Wickidnezz Posted March 31, 2009 Posted March 31, 2009 Re: BANK cap V2 for future references you can do it this way change $_POST['deposit']=abs((int) $_POST['deposit']); to $_POST['deposit']=abs((BIGINT) $_POST['deposit']); and $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); to $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); or you can use $_POST['deposit']=abs((int) $_POST['deposit']); to $_POST['deposit']=abs((float) $_POST['deposit']); and $_POST['withdraw']=abs((BIGINT) $_POST['withdraw']); to $_POST['withdraw']=abs((float) $_POST['withdraw']); keep in mind your still going to need to adjust it in your phpmyadmin 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.