illegalife Posted November 16, 2008 Share Posted November 16, 2008 My users are geting negative numbers with their money... -$50 whats goin on? I need help asap please. Quote Link to comment Share on other sites More sharing options...
Bob911 Posted November 16, 2008 Share Posted November 16, 2008 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. Quote Link to comment Share on other sites More sharing options...
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.