Jump to content
MakeWebGames

Paddy

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by Paddy

  1. Hi Kaine, Try using something like this Color Picker to get an idea on Hex Color codes :thumbup:
  2. Thanks A_bertrand, Very informative P.S Converted to epub format if anyone wants to download on there Tablet Epub Version
  3. Thanks 21Lockdown for the add-on's, keep it up mate you are doing a very good job :thumbup:
  4. Congrats Paul and Equinox :thumbup:
  5. Paddy

    Layout

    Have you uploaded the default.css file? As you can see in the header.php <link href='default.css' rel='stylesheet' type='text/css' /> this is what links the header to the css file for example   body { margin: 0; padding: 0; background: #252D37 url(images/hd1.jpg) repeat-x; font: normal 11px "Trebuchet MS", Arial, Helvetica, sans-serif; color: #A4AFBD;   Also make sure you put the images in a image folder in your public_html so that --->>> url(images/hd1.jpg) is linked correctly
  6. Paddy

    Layout

    Hi woltman123 Could you post the thread where you found this header, perhaps the person who did it could help ;)
  7. Looking good well done
  8. Something like this you mean? [mccode v2.x] Greatly improved Staff user editing system!
  9. Thanks sniko for the update, im posting it hereunder as i think most would like to see it here before downloading, if you don't mind! estateAgent.php   <?php include_once('globals.php'); echo '<h3>Estate Agent</h3>'; if(!$_GET) { return index(); } switch($_GET['p']) { case 'buy' : buy(); break; case 'viewHouse' : viewHouse(); break; default: index(); } function index() { global $db, $ir, $h; $house = $db->fetch_row( $db->query("SELECT `hNAME` FROM `houses` WHERE `hWILL`=". $ir['maxwill'] ." ") ); echo '[b]Your current Property:[/b] ', $house["hNAME"] ,' [i]Welcome to the estate agent, ', $ir["username"] ,'. Here you can view the properties avaliable and purchase them.[/i] '; $get = $db->query("SELECT `hNAME`,`hID` FROM `houses` ORDER BY `hWILL`,`hNAME` ASC"); while($r = $db->fetch_row($get)) { echo "[i]". $r['hNAME'] ."[/i] » [url='?p=viewHouse&id=".$r[']View the house[/url] "; } exit( $h->endpage() ); } function viewHouse() { global $db, $ir, $h; $_GET['id'] = (isset($_GET['id']) & abs( is_numeric($_GET['id'])) ) ? $_GET['id'] : FALSE; if($_GET['id'] == FALSE OR $_GET['id'] <= 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $exist = $db->query("SELECT `hNAME`,`hWILL`,`hPRICE` FROM `houses` WHERE `hID`=". $_GET['id'] ." "); if($db->num_rows( $exist ) == 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $r = $db->fetch_row($exist); echo "<h4> » [b]Viewing:[/b] {$r['hNAME']} </h4> <div style='width: 500px; padding: 5px; background: #D4D4D4; border: 1px solid #000000; text-align: center;'> [img=housepic/{$r[] </div> "; $color = ($ir['money'] >= $r['hPRICE']) ? "green" : "red"; echo "<font size='34pt' color='".$color."'>$".number_format($r['hPRICE'])."</font> [b]House Statistics[/b] Amount owned: ". $q = $db->num_rows( $db->query("SELECT `userid` FROM `users` WHERE `maxwill`={$r['hWILL']}") ) ." Will Increase: ". $will = ($r['hWILL'] / 100) * $ir['maxwill'] ."%"; if($color == "green" AND $ir['maxwill'] < $r['hWILL']) { echo " <font size='34pt'>» [url='?p=buy&id=".$_GET[']Purchase[/url]"; } exit( $h->endpage() ); } function buy() { global $h, $db, $userid, $ir; $_GET['id'] = (isset($_GET['id']) & abs( is_numeric($_GET['id'])) ) ? $_GET['id'] : FALSE; if($_GET['id'] == FALSE OR $_GET['id'] <= 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $exist = $db->query("SELECT `hNAME`,`hPRICE`,`hWILL` FROM `houses` WHERE `hID`=". $_GET['id'] ." "); if($db->num_rows( $exist ) == 0) { echo "We aren't selling this house at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } $r = $db->fetch_row($exist); if($ir['money'] < $r['hPRICE']) { echo "You don't have enough money at the moment! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } if($ir['maxwill'] > $r['hWILL']) { echo "You don't want to get a smaller property do you?! » [url='?p=index']Back to Estate Agent[/url]"; exit( $h->endpage() ); } echo "Congratulations, you have just purchased a {$r['hNAME']} for $".number_format($r['hPRICE'])."! » [url='index.php']Back Home[/url]"; $db->query("UPDATE `users` SET `money`=`money`-{$r['hPRICE']},`maxwill`={$r['hWILL']} WHERE `userid`=$userid"); exit($h->endpage()); } ?>   Instructions Create a new directory called housepic Upload the house images to that directory [house name from database].png Any queries? IM: [email][email protected][/email] EMAIL: [email][email protected][/email] [url]www.delphac.com[/url] || sniko   cheers :thumbup:
  10. Paddy

    Help

    Check out a header i had done a while back [mccode v2.x] Simple Header Hope that helps
  11. Also shouldnt it be?   print <<<EOF alll your stuff here EOF;
  12. Go here http://mccodes.com/support/ http://mccodes.com/contact.php They will get back too you ASAP
  13. Hi there, From what i see you need to have a folder called img. echo "[img=img/" . $type . $card . ".gif]"; As seen here the images should be in there or you need to create them yourself also need to have created too. Don't worry about the tags i did them for you
  14. looks interesting Weldone :thumbup:
  15. FYI , maybe you want to play around with operators to fit your needs
  16. It seems you are using the "HTTP_X_FORWARDED_FOR" in your game So remove all this $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];   Change it to this   $IP = $_SERVER['REMOTE_ADDR']; $IP = mysql_real_escape_string($IP);   Also in header,authenticate, globals ;)
  17. Paddy

    mccode image

    There you go :)
  18. Very Nice illusion
  19. $_GET['Page'] = isset($_GET['Page']) ? $_GET['Page'] : 0; $Boo = $db->num_rows($db->query("SELECT `whatever` FROM `table` ")); $Pages = ceil($Boo / 10); echo 'Pages:'; if ($Pages == 0) { echo 'None'; } else { for($i=1; $i<=$Pages; ++$i) { $Page = ($i-1)*10; if ($Page == $_GET['Page']) { echo '[b]',number_format($i),'[/b]'; } else { echo '[url="shops.php?Start=',$Page,'"]',number_format($i),'[/url]'; } if($i % 25 == 0) { echo ' '; } } }   Try using something like this, hope it helps :)
  20. I love it, ust too see it when i was in the UK about 23 years ago lol, here they do it lunch time and its something i look forward to whilst im on my lunch break from work, petty it stopped for a while and there doing green green grass (main actor boyce) not bad but i prefer fools and horses
  21. Well done & good luck guys
  22. I'm up for it too, same questions as the above Cheers
  23. Paddy

    9/11 R.i.p

    R.I.P to all the 9/11 victims
  24. i think you mean a news letter try one of these News Letter
  25. i went trough the site i got them from and there is no or at least i cant see anything saying that they can not be used, and just to be fair i used the same site Joshua did and he stated that they can be used, so i will try and contact an admin from there to confirm it, but till now there good to go.
×
×
  • Create New...