Jump to content
MakeWebGames

Recommended Posts

Posted

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)

Posted
<?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

Posted

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

Posted

weird i don't use int or float lol,

Changing the DB structure of money and then editing int to bigit is a good idea but if i recall don't you edit the value of that column also from 11?

Brain Storming: couldn't you just edit it to dec(65,0)?

Posted

simple...

Instead of all that code go into the db go into the users structor and click edit on the money change 11 to 58, this will allow a number so big icant even read it LOL

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...