Jump to content
MakeWebGames

More money than 2,147,483,647 ?


r14170

Recommended Posts

look in your phpmyadmin under the users table if more money then 2,147,483,647 is in there then its showing it due to mcc using (int) on more or less every number so you can not enter more the 2,147,483,647 to -2,147,483,647 (its limit) you need to change all (int) to (float) (i think its float may be wrong O-o)

Link to comment
Share on other sites

<?php
$var1 = abs((float)99999999999999) ;
echo "$var1";
?>

 

would allow more then 2,147,483,647 ...

however mccodes use (int) not (float)

Just because in other occurrences of the (int) inside of McCodes, doesn't mean it won't work in this instance.

Unless ofcourse, the 'money' value is doing the same in a different file like globals

Link to comment
Share on other sites

yes i know it would not effect money unless it was on the money part O-o in banks for example when putting money in it is passed via the $_POST['deposit'] it is using something like

 

$_POST['deposit']=abs((int) $_POST['deposit']);

 

so no more then the int value can go in even if the database would save it (could be wrong)

 

you do not add that it was an example

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.

×
×
  • Create New...