anyone help me . this from jackpot game its works fine when ppl win but it dosnt deduct the plusses when they lose.
prob something simple am missing here
cheers guys
prob something simple am missing here
Code:
if($lucky_number==$random) { $var = $bet * 2; $nplus = $uplus[0] + $var; if(mysql_query("UPDATE dave_users SET plusses='".$nplus."' WHERE id='".$uid."'")) echo "<small>You have recieved ".$var." plusses for winning</small>"; echo "<br/>"; echo "You now have ".$nplus." plusses left."; echo "<br/>"; } }else{ $nplus = $uplus[0] - $bet; if($nplus<0) { $nplus = 0; } if(mysql_query("UPDATE dave_users SET plusses='".$nplus."' WHERE id='".$uid."'")) { echo "<small>You have lost ".$bet." plusses for losing</small>"; echo "<br/>"; echo "You now have ".$nplus." plusses left."; echo "<br/>";
Comment