Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. <? print "{$set['game_marquee' ]}"; ?> print sucks, if your gonn shorten it, use <?= $set['game_marquee']; ?> and if you wanna do this way: <? print "{$set['game_marquee' ]}"; ?> Dont add the " or the } and {
  2. OR use exit($h->endpage());
  3. Who said it was a function :/
  4. Use a while loop
  5. I prefer the old CE days thf. Good old SMF, how me all miss it.
  6. From W3Schools, thay cant lie now can they -.- any more evidence you want.
  7. http://www.google.com/search?q=echo+faster+than+print&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a <<pritty sure that knows more than your 'friend' This Roy clearly needa to see that link. I could ask most people, they would agree with me. and for two echos, do this echo'blahh'.'hlahh2'; print wont do it because it sucks!
  8. (isset($_GET['sort']) && is_numeric($_GET['sort'])) ? abs(@intval($_GET['sort'])) Is your problem, its not numeric, its a string.
  9. Shutup fool, echo is faster than print. The end. if you disagree, [...] and google it.
  10. Find and delete: $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $secondsago = time()-$line['lastactive']; if ($secondsago > 2592000) { $user_online = new User($line['id']); $result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'"); } }
  11. True, True
  12. Seen as you wrote that, i presume you can read, reading is a hard skill, should be good to use it -.-
  13. http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm << edit that for a theme changer :) or use the CSS changer and learn css :/
  14. Sheep - look at that loney sheep Sheep - Look all them sheep! Their - This is their ball There - Look over there Gay - Im happy! Gay - Im attracted to the same sex as me :)
  15. F5 works ;)
  16. All i have to say is. Thank you youve given the community great mods, sorry to hear about your health, but you made the rite choose.
  17. McCraps << blame them :P
  18. This is just a table that lists the items :/
  19. <?php @include_once(DIRNAME(__FILE__) .'/sglobals.php'); $get_items = $db->query("SELECT * FROM `items`;"); echo'<table width="90% class="table"> <tr> <th>Name</th> <th>Type</th> <th>Buy Price</th> <th>Sell Price</th> <th>Effects</th> <th>Attack</th> <th>Defence</th> </tr>'; while($item = $db->fetch_row($get_items)) { $type = @mysql_result($db->query("SELECT `itmtypename` FROM `itemtypes` WHERE (`itmtypeid` = ". $item['itmid'] .");"); $effects = 0; if($item['effect1_on']) { $effects++; } if($item['effect2_on']) { $effects++; } if($item['effect3_on']) { $effects++; } echo'<tr> <td>'.htmlspecialchars(stripslashes($item['itmname'])).'</td> <td>'.htmlspecialchars(stripslashes($type)).'</td> <td>'.money_formatter($item['itmbuyprice']).'</td> <td>'.money_formatter($item['itmsellprice']).'</td> <td>There are: '.$effects.' effects on this</td> <td>'.number_format($item['weapon']).'</td> <td>'.number_format($item['armor']).'</td> </tr>'; } echo'</table>'; echo'[size="1"]Made by Danny696-Navry[/size]'; $h->endpage(); ?> Basic but works *not tested tho*
  20. Ill make one give me 2 mins
  21. or echo 'House tax: '.money_formatter($ir['Taxes']).'.';
  22. echo $weapon = ($wep['itmname']) ? $wep['itmname'] : 'Fists'; << wouldnt work, try this: echo ($wep['itmname']) ? $wep['itmname'] : 'Fists';
  23. When the alchol wares off, you'll see your mistake ;)
  24. Check this website out, http://www.ultramegatech.com/blog/2009/04/creating-a-bbcode-parser/
×
×
  • Create New...