HITMAN 17 Posted November 22, 2007 Share Posted November 22, 2007 when someone buys a house like semi detached house it dosnt change the house and keeps the old house can anyone help plz Quote Link to comment Share on other sites More sharing options...
Godhand Posted November 23, 2007 Share Posted November 23, 2007 Re: problem Well check under the sell house portion in the page and make sure that it decreases their house and sets them back to default house. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 23, 2007 Author Share Posted November 23, 2007 Re: problem well this dont work { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np=$db->fetch_row($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=0,maxwill=100 WHERE userid=$userid"); print "You sold your {$np['hNAME']} and went back to your shed."; } } else { print "Your current property: [b]{$mp['hNAME']}[/b] The houses you can buy are listed below. Click a house to buy it. "; if($ir['maxwill'] > 100) { print "[url='estate.php?sellhouse']Sell Your House[/url] "; } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print "[url='estate.php?property={$r[']{$r['hNAME']}[/url]   - Cost: \${$r['hPRICE']}   - Will Bar: {$r['hWILL']} "; } } $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 23, 2007 Author Share Posted November 23, 2007 Re: problem actually i sorted it any way thnx *LOCKED* 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.