Jump to content
MakeWebGames

Feky

Members
  • Posts

    172
  • Joined

  • Last visited

    Never

Everything posted by Feky

  1. Re: Viewing codes hack thanks lol +2 for you
  2. Re: Viewing codes hack not sure but i think their are way to secure this if u dont know just do some googling
  3. Re: Viewing codes hack   yea lol but u still most people cant be trusted is their a secure for this so everyone can secure it
  4. Re: Viewing codes hack   so which means it is possible to copy people html layouts and css
  5. i fount a way to view source codes by going in to the game is their a way to secure this by view i mean the layout of anypage and anygame i am not going to mention them here cos it will put people games under risk but just to let u know it is possible
  6. Re: Help !!URGENT!! what is ur game called
  7. Re: House pic trouble yea lol i done that and all that appears is [colour=red]Your House Is:Shack[/colour]
  8. Re: House pic trouble no errors this time, but all it prints is (Your House Is:Shack) in colour red and dosent display the pic
  9. Does anyone know where this would be added i keep getting error where ever i add it   <center><font color=red>Your House Is:{$ir['hNAME']}</font></center> <center>{$ir['hPIC']}</center>   <?php $housequery = '1'; include_once (DIRNAME(__FILE__) . '/globals.php'); if($ir['protected']) { print "<font color=red>you are currently protected with a body guard for [b]{$ir['protected']}[/b] hours</font>"; } $BankMoney = ($ir['bankmoney'] == '-1') ? 'No Account!' : number_format($ir['bankmoney']); $m=$db->query("SELECT * FROM users WHERE userid='{$ir['married']}'"); $par=$db->fetch_row($m); $partner = ($ir['married'] != 0) ? "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url] [[url='partner.php']Manage[/url]]" : "<font color=red>N/A</font>"; if ($ir['noobpack'] == '0') { echo '<form action="starterpack.php"> <input type="submit" value="Claim your free starter pack now!"> </form>'; } echo '<h3 style="text-decoration: underline;">Home</h3> <table width="100%" border="1" cellspacing="0" cellpadding="3" style="text-align:center;" class="table"> <tr> <td width="50%">[b]Name:[/b] '.stripslashes($ir['username']).'</td> <td width="50%">[b]Level:[/b] '.number_format($ir['level']).'</td> </tr> <tr> <td>[b]Property:[/b] '.stripslashes($ir['hNAME']).'</td> <td>[b]HP:[/b] '.number_format($ir['hp']).'/'.number_format($ir['maxhp']).'</td> </tr> <tr> <td>[b]Money:[/b] '.number_format($ir['money']).'</td> <td>[b]Crystals:[/b] '.number_format($ir['crystals']).'</td> </tr> <tr> <td colspan="2">[b]Married:[/b] '.$partner.'</td> </tr> </table>'; $TotalStats = $ir['strength'] + $ir['agility'] + $ir['guard'] + $ir['labour'] + $ir['IQ']; $TotalRank = get_rank($TotalStats, 'strength + agility + guard + labour + IQ'); echo ' <h3 style="text-decoration: underline;">Stats Info:</h3> <table width="100%" border="1" cellspacing="0" cellpadding="3" class="table" style="text-align:center;"> <tr> <th width="33%">Stat</th> <th width="33%">Amount</th> <th width="34%">Rank</th> </tr> <tr> <td>Strength</td> <td>'.number_format($ir['strength']).'</td> <td>Rank: '.get_rank($ir['strength'], 'strength').'</td> </tr> <tr> <td>Agility</td> <td>'.number_format($ir['agility']).'</td> <td>Rank: '.$ir['agirank'] = get_rank($ir['agility'], 'agility').'</td> </tr> <tr> <td>Guard</td> <td>'.number_format($ir['guard']).'</td> <td>Rank: '.$ir['guarank'] = get_rank($ir['guard'], 'guard').'</td> </tr> <tr> <td>Labour</td> <td>'.number_format($ir['labour']).'</td> <td>Rank: '.$ir['labrank'] = get_rank($ir['labour'], 'labour').'</td> </tr> <tr> <td>IQ</td> <td>'.number_format($ir['IQ']).'</td> <td>Rank: '.$ir['IQrank'] = get_rank($ir['IQ'], 'IQ').'</td> </tr> <tr> <td>Total Stats</td> <td>'.number_format($TotalStats).'</td> <td>Rank: '.$TotalRank.'</td> </tr> </table> '; if(isset($_POST['NotesUpdate'])) { $db->query(sprintf("UPDATE `users` SET `user_notepad`='%s' WHERE `userid` = '%u'", mysql_real_escape_string($_POST['NotesUpdate']), $userid)); header('Location: index.php'); } echo 'Your Personal Notepad: <form action="index.php" method="POST"> <textarea rows="10" cols="50" name="NotesUpdate">'.htmlspecialchars(stripslashes($ir['user_notepad'])).'</textarea> <input type="submit" value="Update Personal Notes!" /> </form>'; $h->endpage(); ?>
  10. Feky

    Visability

    Re: Visability http://criminalexistence.com/ceforums/index.php?topic=25678.msg109043;topicseen#msg109043
  11. Feky

    Visability

    Re: Visability works perfect lol ur one of the most helpful people on these forums lol +2
  12. Feky

    Visability

    Re: Visability so if i want people higher lvl then 5 to view it it would b like this   if($ir['level'] <= '5') { print "<a href = 'bank.php' />bank</a>"; }
  13. Feky

    Visability

    Re: Visability thanks mate +1
  14. does anyone know how to put this so the investment bank is visible to lvls 5 and above. I tried but its not visible to any lvls above 5. .   if($ir['level'] == '5') { print "<a href = 'investment.php' />Investments</a>"; }
  15. Re: [mccode v2] Site lockdown thanks crazy T +1 for u and haunted dawg
  16. Re: Finding items for some reason i get this error QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO inventory VALUES ('', 59, 1, 1)
  17. Re: Finding items thats not the problem the problem is that the item dosent get sent to user inventry
  18. does anyone know what is wrong with ,when a item is found it does not to the user inventry //-- Finding items query $fia=(int) rand(10000,50000); $fib=(int) rand(10000,50000); if($fia == $fib) { $iq=mysql_query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; mysql_query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c); } }
  19. Re: [mccode v2] Site lockdown   Where did you add it in header.php, but were about in header? i would add in under the mainarea/mainmenu bit in header. do u know how to change the colour to white i tryed but keep getting errors
  20. Re: [mc code V2]Updated Lottery lottery.php <?php include "globals.php"; switch($_GET['action']) { case 'buysub': buy_sub(); break; default: index(); break; } function index() { global $db,$ir,$userid; $cost = 1000; $tick = 100; $sql = sprintf("SELECT * FROM `lottery`"); $query = $db->query($sql); $row = $db->fetch_row($query); echo sprintf(" <font color = 'yellow' size = '4' /><b /> Welcome to the Nation Jackpot. You currently have %d tickets and are able to purchase up to %d tickets per week. Each ticket costs £%d. The jackpot is £%u.", $ir['lottery'], $tick, $cost, $row['jackpot']); echo " <form action = 'lottery.php?action=buysub' method = 'post' /> <input type = 'text' name = 'buysub' value = '1' /> <input type = 'submit' value = 'Buy Tickets' /> </form>"; } function buy_sub() { global $db,$ir,$userid; $_POST['buysub'] = abs((int) $_POST['buysub']); $cost = 1000; $price = $cost * $_POST['buysub']; if($_POST['buysub'] > 100) { die("You can't buy more than 100 lottery tickets. <a href = 'index.php' />Go Home</a>"); } if($ir['lottery'] >= 100) { die("You have already purchased 100 tickets this week. <a href = 'index.php' />Go Home</a>"); } if($_POST['buysub'] + $ir['lottery'] > 100) { die("You can't buy this many tickets because you would exceed the maximum amount of allowed tickets. <a href = 'index.php' />Go Home</a>"); } if($ir['money'] < $price) { die("You don't have enough money to buy {$_POST['buysub']} tickets. <a href = 'index.php' />Go Home</a>"); } else { print "You have bought {$_POST['buysub']} lottery tickets. <a href = 'index.php' />Go Home</a>"; $sql = sprintf("UPDATE `users` SET `lottery` = `lottery` + '%d', `money` = `money` - '%d' WHERE `userid` = ('%u')", $_POST['buysub'], $price, $userid); $db->query($sql); $sql1 = sprintf("INSERT INTO `lottery` (id,userid, amount) VALUES (%d,%u, %d)", '',$userid, $price); $db->query($sql1); $sql2 = sprintf("UPDATE `lottery` SET `jackpot` = `jackpot` + '%d'", $price); $db->query($sql2); } } $h->endpage(); ?>   cron_weekly.php <?php include ("./config.php"); global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; include("./global_func.php"); $sql = $db->query("SELECT * FROM `lottery`"); $rows = $db->num_rows($sql); $row = $db->fetch_row($sql); $winner = rand(1,$rows); $winnerq = sprintf("SELECT `userid` FROM `lottery` WHERE `id` = %d", $winner); $winnerq1 = $db->query($winnerq); $user = $db->fetch_row($winnerq1); $credit = sprintf("UPDATE `users` SET `money` = `money` + %d WHERE `userid` = (%u)", $row['jackpot'], $user['userid']); $db->query($credit); event_add($user['userid'],"You won the weekly lottery and were credited \${$row['jackpot']}",$c); $db->query("UPDATE `users` SET `lottery` = 0"); $db->query("TRUNCATE TABLE `lottery`"); ?>
  21. Re: [mccode v2] Site lockdown does anyone know how to place this in the centre it goes right in the corner of my screen   if($set['site_lockdown']) { if($ir['user_level'] == 2) { echo 'Site is on lockdown, remmember to remove lockdown'; } else { echo 'Site is on lockdown, thus, no user is able to access the site except for admins.'; exit($this->endpage()); } }
  22. Re: [mc code V2]Updated Lottery fixed it now mine works
  23. Re: [mccode v2] Site lockdown so u had no donations yet
  24. Re: [mccode v2] Site lockdown ha ha i was just on your game and my ip got banned lol then it went unbanned again and u have alot of people playing your game have u made any cash from donations yet
  25. Re: [mccode v2] Site lockdown   yea i ran ur sql lol and its not working
×
×
  • Create New...