Jump to content
MakeWebGames

Negative money ???


illegalife

Recommended Posts

Re: Negative money ???

there maybe an SQL query in one of your mods which made this happen. Check any mods you added recently or any SQL queries you have added. There may have been a query to minus money from a user but you may not have secured it by making sure it does not minus money if the user does not have enough money for whatever it is they are doing.

So for example, if you have something on your game which costs $300,000 to do, you would put this:

if($ir['money'] < 300000)

{

print "You don't even have enough money ";

$h->endpage();

exit();

}

else

{

$db->query("UPDATE users SET money=money-300000 WHERE userid=$userid");

}

If your money is going into minuses, then you may have just put:

{

$db->query("UPDATE users SET money=money-300000 WHERE userid=$userid");

}

 

This will minus $300,000 from the user even if they did not have enough to do whatever it is they wanted to.

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