Jump to content
MakeWebGames

dwebb1130

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

dwebb1130's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Updated RentA Spy (v2) How can you edit the success rate?
  2. Re: Changer User Password! V2 Can someone tell me how to add a function for View Current password?
  3. Re: House Upgrade Mod! ?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); if (isset($_GET['property'])) { $qh1=$db->query("SELECT * FROM houses WHERE hID={$ir['house']}+1"); $next=$db->fetch_row($qh1); if($next['hPRICE'] > $ir['money']) { print "You do not have enough money to upgrade your house."; $h->endpage(); exit; } if(!$next['hID']) { print "You already own the top property."; $h->endpage(); exit; } $db->query("UPDATE users SET money=money-{$next['hPRICE']},will=0,maxwill={$next['hWILL']},house=house+1 WHERE userid=$userid"); print "You upgraded at the cost of {$next['hPRICE']}."; } else { print "Your current property: {$mp['hNAME']} The houses you can buy are listed below. Upgrade Your House "; $hq=$db->query("SELECT * FROM houses ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print ""; } print " House House Price House Will {$r['hNAME']} \$$t".money_formatter($r['hPRICE'],'')." ".money_formatter($r['hWILL'],'')." "; } $h->endpage(); ?>
×
×
  • Create New...