Jump to content
MakeWebGames

Karlos

Members
  • Posts

    951
  • Joined

  • Last visited

    Never

Everything posted by Karlos

  1. Re: [V1 && V2] Simple MySQL Rank Mod!   Why use that? The following should be good enough... $Row = mysql_fetch_array(mysql_query(sprintf("SELECT `u_rank` FROM `ranks` WHERE `u_level`='%u'", abs(@intval($r['level']))))); $Blah = (!$Row['u_level'] && !$Row['u_rank']) ? 'No Rank' : $Row['u_rank']; echo '[b]Rank:[/b] #'.$Blah
  2. Re: [Need]Sql Dump[Need] Haha :lol: :lol:
  3. Re: Is It Possible? Read up on it: http://www.w3schools.com/html/html_tables.asp Mess around and try: http://www.w3schools.com/html/tryit.asp ... ml_tables3
  4. Re: [V2] Exp Cow List ($3.00) Ahh I understand now, thanks.
  5. Re: Donators List Warning - while you were reading 2 new replies have been posted. You may wish to review your post. Well I was just about to mention about why using sprintf() for that..   $q = $db->query("SELECT `userid`, `username`, `level`, `donatordays` FROM `users` WHERE `donatordays` > '0' ORDER BY `donatordays` DESC");   :-P
  6. Re: Have any mod ideas post here! Illusions did this
  7. Re: [V2] Exp Cow List ($3.00) Screenshots avaible? I'm confused about the description.
  8. Re: [mccode] Mod Sale [$10.00 - $80.00]   Why not use something that keeps the varibles the same? KISS - Keep It Simple Stupid (Sorry But I Think That Could Be Good Advice For People) Anyway here's my idea. (Flame if you need to because I would like to find security issues if there is any)   $Salt = 'SALT GOES HERE'; strrev(sha1($Salt . $_POST['password'] . $Salt))   Edit: My Salt Removed.
  9. Re: [mccode v2] User Comments Find: $to = $_POST['userid']; Replace with: $to = $_POST['userid']; event_add($_GET['userid'], 'You Have Been Left A Message On Your Profile', $c);
  10. Re: [Mccodes V2] Item Sell Update [Javascript!] Sorry have to be picky :-P A client have JS turned off... Now what?
  11. Re: [v2] Killing Users To be honest if i ever played a game with that on it i would think..   RETARDED GAME!
  12. Re: .htaccess or php help needed Thanks useful post :roll:
  13. Re: What would be better to use? How would   UPDATE `users` u LEFT OUTER JOIN `userstats` us ON u.`userid`=us.`userid` SET u.`money`=u.`money`+'1', u.`crystals`=u.`crystals`+'1', us.`IQ`=us.`IQ`+'1' WHERE u.`userid`='1' or even UPDATE `users` u INNER JOIN `userstats` us ON u.`userid`=us.`userid` SET u.`money`=u.`money`+'1', u.`crystals`=u.`crystals`+'1', us.`IQ`=us.`IQ`+'1' WHERE u.`userid`='1'   perform?
  14. Re: [Mccodes V2]Login Register, TOs http://xg-network.co.cc/Template/AnimeWarzLogin.zip :roll:
  15. Re: Strange Ip problem I've been looking around and simple why not just use function IP($IP) { return long2ip(ip2long($IP)); }   Example #3 IP validation ip2long() should not be used as the sole form of IP validation. Combine it with long2ip(): <?php // make sure IPs are valid. also converts a non-complete IP into // a proper dotted quad as explained below. $ip = long2ip(ip2long("127.0.0.1")); // "127.0.0.1" $ip = long2ip(ip2long("10.0.0")); // "10.0.0.0" $ip = long2ip(ip2long("10.0.256")); // "10.0.1.0" ?>   Handles IPv4 Addresses Only.
  16. Re: Need help with Ajax Removed.
  17. Re: [mccode] Crimes give random money Why use rand() try mt_rand()
  18. Re: Strange Ip problem I see, well the code was the same so you could of just agreed :lol:
  19. Re: [V2] Current Status - What's going on? It's an hour, i'm 100% sure
  20. Re: [V2] Current Status - What's going on? Told you mine did work :wink: I don't have the ability to edit my post now since it has been an hour since I posted it. No body plays my game so I won't call it advertising. Hence i'm re-coding it and re-releasing tho.
  21. Re: Strange Ip problem The source of MD's posted code... http://www.teachmejoomla.net/code/php/r ... h-php.html
  22. Re: [V2] Current Status - What's going on? Check http://cursed-islands.com its working on their :wink: My version works perfectly.
  23. Re: [V2] Current Status - What's going on? Or try this :wink:   <?php // Pweety Colours xD echo ' <table class="status"> <tr style="text-align:center;"> <td> [b]Your current status[/b]: </td> </tr> <tr style="text-align:center;"> <td>'; $S = ($ir['hosptital'] > '1' OR $ir['jail'] > '1' OR $ir['new_mail'] > '1' OR $ir['new_events'] > '1') ? 's' : ''; if($ir['hospital']) echo 'You are currently in hospital for '.number_format($ir['hospital']).' minute'.$S; else if($ir['jail']) echo 'You are currently in jail for '.number_format($ir['jail']).' minute'.$S; else if ($ir['new_mail'] > '0') echo 'You have new mail'.$S.'! Check your [url="mailbox.php"]mailbox[/url] to read it.'; else if ($ir['new_events'] > '0') echo 'You have new event'.$S.' Check your [url="events.php"]events[/url] to check whats going on.'; else echo 'All is fine for you at the moment!'; echo ' </td> </tr> </table>';
  24. Re: forum posts Because i decided to put it in PHP tags not code tags.
  25. Re: [V2] Current Status - What's going on? Good for syntax error..   <?php // Pwetty colours xD echo ' <table class="status"> <tr style="text-align:center;"> <td> [b]Your current status[/b]: </td> </tr> <tr style="text-align:center;"> <td>'; if($ir['hospital']) { echo 'You are currently in hospital for '.number_format($ir['hospital']).' minutes.'; } else if($ir['jail']) { echo 'You are currently in jail for '.number_format($ir['jail']).' minutes.'; } else if ($ir['new_mail'] > '0') { $mails = ($ir['new_mail'] > 1) ? "s" : ""; echo 'You have new mail'.$mails.'! Check your [url="mailbox.php"]mailbox[/url] to read it.'; } else if ($ir['new_events'] > '0') { $events = ($ir['new_events'] > 1) ? "s" : ""; echo 'You have new event'.$events!.' Check your [url="events.php"]events[/url] to check whats going on.'; else echo 'All is fine for you at the moment!'; echo ' </td> </tr> </table>';
×
×
  • Create New...