Jump to content
MakeWebGames

Money cap..


Tomo
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...