
Tezza`
Members-
Posts
802 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Tezza`
-
Re: Transferring Crimes? Copy the table from phpmyadmin should work?
-
Re: Large Number.... <?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); $_GET['property']=abs((float) $_GET['property']); if($_GET['property']) { $mpq=$db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np=$db->fetch_row($mpq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hNAME']}."; } 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 wooden hut."; } } else { print "<center>Your current property: <font color=blue>[b]{$mp['hNAME']}[/b]</font> The houses you can buy are listed below. Click a house to buy it. "; print "[url='estate.php?sellhouse']Sell Your House[/url] "; if($ir['willmax'] > 100) { } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print " <table cellspacing=2 class='table'><tr style='background:gray;'><th>House</th><th>House Price</th><th>House Will</th><th>Buy?</th></tr>"; $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC",$c); while($r=$db->fetch_row($hq)) { print "<tr><td>{$r['hNAME']}</a></td><td>£$t".money_formatter($r['hPRICE'],'')."</td> <td>{$r['hWILL']}</td> <td>[url='estate.php?property={$r[']{$r['hNAME']}[/url]   - Cost: £" . number_format($r['hPRICE'], "") . "   - Will Bar: " . number_format($r['hWILL'], "") . " </tr>"; } print "</table>"; } } $h->endpage(); ?> Try this.
-
Re: Illegal downloading hmm yea i guess... but like i said just roomours.
-
Re: Illegal downloading Well what ive been hearing roomours about is that the government is starting to attach viruses to music and movies and programs from torrents and file sharing programs such as limewire. But ive never have any problems ;)
-
Re: Xbox Live i think they suck and PC GAMING is the next generation ;) :P
-
Re: Internet Explorer 8 I have to say... i do prefere firefox.. but, there is a lot of applications ive opened in firefox that have crashed the browser and when i open them in IE they sucsesfully open... so i say there both ok... but FF is the way forwards ;).
-
Re: Windows Xp - customizing the start button Yeah ive seen this before on a tutorial on youtube.. its cool xD
-
Re: Puzzled.... Try putting a... } Before ?>
-
Re: Need help quickly Please I guess you would just change the "$bgcolor = 'FFFFFF'" to i think ;)
-
Re: [Free] Log Suspicious Users No problem
-
Re: [Free] Log Suspicious Users yup.
-
Re: [Free] Log Suspicious Users Add: // Log Suspicious Users Mod function loguser() { global $ir,$c,$h,$userid; echo '<h3>Log Suspicious Users</h3>'; if ($_GET['log']=="view" && !empty($_GET['ID'])) { echo 'Last 1000 actions of ID: '.$_GET['ID'].' <table width="90%" border="1"><tr><td><u>Action</u></td><td><u>Accessed By</u></td><td><u>IP</u></td><td><u>Time</u></td><td><u>Date</u></td>'; $user=abs(@intval($_GET['ID'])); $loggy=mysql_query("SELECT * FROM `logs` WHERE userid=$user ORDER BY ID DESC LIMIT 1000", $c); while($logs=mysql_fetch_object($loggy)) { echo '<tr><td>'.$logs->action.'</td><td>'.$logs->access.'</td><td>'.$logs->IP.'</td><td>'.$logs->time.'</td><td>'.$logs->date.'</td></tr>'; } echo '</table>'; $h->endpage(); exit; } if (isset($_POST['submit'])) { $length=abs(@intval($_POST['length'])); $ID=abs(@intval($_POST['userid'])); mysql_query("UPDATE users SET log=$length WHERE userid=$ID", $c); if ($length==0) { echo 'User '.$ID.' will no longer be logged! '; } if ($length>0) { echo 'User '.$ID.' will now be logged for '.$length.' days! '; } } echo 'Add a User to be logged: <form action="'.$_SERVER['PHP_SELF'].'?action=loguser" method="POST">User ID: <input type="text" name="userid" /> Length: <input type="text" name="length" /> <input type="submit" name="submit" value="Log!"> </form> Current users being logged: <table width="80%"><tr><td><u>User</u></td><td><u>Length of Log</u></td><td><u>View?</u></td></tr>'; $logz=mysql_query("SELECT * FROM `users` WHERE log>=1", $c); while($log=mysql_fetch_object($logz)) { echo '<tr><td>[url="viewuser.php?u='.$log->userid.'"]'.$log->username.'[/url]['.$log->userid.']</td><td> '.$log->log.'</td><td>[url="'.$_SERVER['PHP_SELF'].'?action=loguser&log=view&ID='.$log->userid.'"]View[/url] </td></tr>'; } echo '</table> [i](To delete a user just enter the ID and put 0 as the length)[/i]'; } before: $h->endpage(); ?>
-
Re: [Free] Log Suspicious Users I see. :P im such an asshole :{ Thanks... great mod.
-
Re: [Free] Log Suspicious Users Fatal error: Call to undefined function loguser() in /home1/krorynet/public_html/staff.php on line 7
-
Re: Header hy you suspended ? :/
-
Re: Header Have you got a game if so what is it?
-
Re: Hall of Fame question.... oh ok lol
-
Re: Hall of Fame question.... user_level != 2 AND user_level != 4 will that do it :/
-
Re: new login.php Screenshots?
-
Re: Transfer current v1 game to v2??? Possible? :/, no you should not do.... all the data and imformation is stored in the database... ?
-
Re: going to hospital Well if you got the free version why not just download them again then you have your hospital.php ? :/
-
Re: [mccode] Stats Market I dont understand, it would just ruin the econamy of a gme straight away if people or swapping and changing stats to attack the level would go sky high.
-
Re: Crimes Usually i would just change the 4
-
Re: Login Page Enter "login.php" And find {$set['game_description']} And replace the "game_description" with what you want.
-
Re: Hall of Fame question.... Didnt they just tell you how to code the admins out?