Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: [V2] Quick Question - Crimes   $items = array(1,2,4,12,8); item_add($userid, $items[mt_rand(0,4)], 1);
  2. Re: [NAME AND SHAME FORUM] get it off yer chest that geeza is a punk. His game is a pile of shit as well
  3. Re: [FAQ] Before posting An Error A method i use when having a weird error is to echo the sql strings, then test them in phpMyAdmin.
  4. Re: How often are these games customized? Very good point. That game your on about has a sick template but the game has only minor changes.
  5. Re: [any version] Removal of 1 minute crons @illusions. I created a 5min updater months ago, I remember reading posts like "use a timestamp" and decided to try it out. To increase performance you could instead of adding 12 mins to the jail field add the current time stamp + how long in jail for. Then instead of checking if the field has a value you could use something like if($jailTime - time() < 0)
  6. Re: User Levels [v2] Try something like this.   function getPlayerRank($n) { $names = array("#1 Absolute Newbie,"#2 Newbie","#3 Beginner","#4 Not Experienced"); switch($n) { case ($n < 3): $i = 1; break; case ($n >= 3 AND $n < 12): $i = 2; break; case ($n >= 12 AND $n < 18): $i = 3; break; case ($n >= 18 AND $n < 25): $i = 4; break; } return $names[$i]; }
  7. Re: [any version] Removal of 1 minute crons I'm gonna add this to my game :) Also, the limit of integer is sumin like 2.2Billion which is 11 chars in length i think. You have a int(255) which may cause an error, try bigint(52) or sumin.
  8. Re: User Levels [v2] ranks mod?
  9. Re: BRAND NEWW !!!!!!!!! this kids a joker. Gets *1600* from his old game then goes and sets up a free host with free game engine lol
  10. Re: Mccodes V2 Request Name Changes speed improvement :)   <?php function nameFormat($id) { $query = mysql_query("SELECT userid,donatordays,username FROM `users` WHERE `userid` = '".intval($id)."' LIMIT 1") or die(mysql_error()); $row = mysql_fetch_object($query); swtich($row->userid) { case 1: $icon = "/images.image.gif": break; case 2: $icon = "/images.image.gif": break; case 3: $icon = "/images.image.gif": break; case 4: $color = "jade": break; case 5: $icon = "/images.image.gif": break; case 6: $icon = "/images.image.gif": break; } if($row->donatordays > 0){$color = "blue";} return '[url="viewuser.php?u="]userid.">'. ((isset($color))?'<span style="color:'.$color.';">'.$row->username.'</span>': <span style="color:white;">'.$row->username.'</span>').'[/url]'; }
  11. Re: MCCODES V2   Here is a starter ;) http://pog1.co.uk/updates.txt
  12. Re: Food Shop [Mccode V2] Try to name the links more appropriate, so something like burger, chips, pizza. Also, why does everyone use functions with the switch?   <?php $_GET['page'] = strval($_GET['page']); $page = (isset($_GET['page']) AND in_array($_GET['page'],array('burger','chips','pizza')) ? $_GET['page'] : 'index'; switch ($_GET['action']) { case 'burger': mysql_query("update users blah..."); echo 'You got a burger'; break; case 'chips': mysql_query("update users blah..."); echo 'You got some chips'; break; case 'pizza': mysql_query("update users blah..."); echo 'You got a pizza'; break; default: echo 'links here'; break; } ?>
  13. Re: New explore city (HTML) Noobie coder. You can use CSS but your pretty much defeating the object of it.   hint *If you use a class or id on the table and tr then it take much less code* table.explore { text-align: left; width: 100%; height: 431px; } table.explore tr { text-align: left; vertical-align: top; }
  14. Re: Changing the SQL on items   take a look here http://webdesign.about.com/od/metatagli ... 80300a.htm
  15. Re: captcha or another method What i meant was, how would you display the images.. You cant just use an because then that would be pointless.
  16. Re: captcha or another method I have seen this done. Instead of weapons it had random images; fish, tree, car for example. How could this be done?
  17. POG1

    PHP Chat

    Re: PHP Chat You should give it a go. The flash chat doesn't work for me (it just flashes) so it will be a 100% improvement for me
  18. Re: Food Shop [Mccode V2] @ yaz. How is that secure? all you did was add sprintf lol
  19. Re: what can it be?   "UPDATE uBANK SET bMONEY = bMONEY + ".floor($ir['bMONEY'] * 0.01)." WHERE bMONEY > 0"   Use the PHP floor function. Also if you try and round 0 how would you do it? its imposible..         Edit: Fixed PHP tags
  20. Re: 3 Revamps [V2]   why would you want to show their items? that would ruin attacking.
  21. Re: [self Made] New Login Page whats with all that php? authenticate.php does the logging in
  22. Re: Report Player Image It's a good idea to have your images to be approved. If you have a good team of active staff then it won't be long for someone to get their picture approved. The mod wouldn't be hard to make..
  23. Re: Spotify - Free Legal Music its 'program' not 'programme'
  24. Re: Tables have border when set to 0 cell-spacing:0; I think that will work
  25. Re: Mccodes V2 Request Name Changes Store the colour of the data in the user table in a hexadecimal code. Where you want the colored name add something like..   echo '<span style="color;#'.$ir['nameColor'].';" class="userName">'.$ir['username'].'</span>';
×
×
  • Create New...