Re: [V2] Car Racing
wrong...
$db->query("UPDATE users SET money=money-3500,car=1 WHERE userid=$userid, money = money = 0",$c);
i suggest making it so that when they even try starting the race it takes the money away then gives the total to the winner
this also means when the guy they try and race agree's to the race it will take the money away
also to prevent any - money you can add
something similar to:
if($ir['money'] != $_POST['cost'])
{
echo "You do not have enough money to accept this please withdraw some.
>[url='bank.php']Goto Bank[/url]
>[url='index.php']Go Home[/url]";
$h->endpage();
exit;
}
thats a example obviously but might help you
good luck