Jump to content
MakeWebGames

SRB

Members
  • Posts

    785
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by SRB

  1. As much as I like money, I prefer to have a life these days - mainly because I look at far too much code every day at work, so generally avoid it in my spare time. As Sniko has time and is offering it, even though he is a n00b (>.<) , I'd take the offer
  2.   No offence (or you can take it if you like), but since when was hosting with an amateur appealing over getting hosting with a professional? No offence (or he can take it if he likes), but Peter is no AWS, DO etc. He has no dedicated development teams working on server builds, backup systems and replications etc. And if it was "cheap", I think you've just found the true cost of cheap. Given you have no complete backup, you are kind of screwed unless you can somehow get Peter to get your data for you, but since he has gone into MIA mode, I am going to say he probably knows that ain't happening, so you sir, be fuxt.
  3. No Problem, Dude. #iHazSomeManners #PutSomeRespecOnMyName
  4. Thanks Guest.
  5. SELECT cityname, SUM(money) AS money, SUM(bankmoney) AS bankmoney FROM users LEFT JOIN cities ON (cities.cityid = users.residency) GROUP BY residency;
  6. Then wave goodbye to any user who plays via their phone (huge amount of people), with limited data plans (most people) and normally play when on the move (no wifi)
  7. SRB

    PandaServe

    No offence, but this is a bad idea for any potential client who is running a game. I've never, and never would, take hosting for a game from a person who runs a game - there's conflict of interests and you're also you're trusting your domain, files and use base to what IS your competition. That's like McDonalds giving server access to Burger King - never happening.
  8. I may recode my old MC codes version and update it to use jQuery and ajax requests... If time allows.
  9. - Slower internet speeds - Insecure - no offence, but you're asking this question, so can't be a server whizz. - unreliable - hosts will have better reliability, and far faster recovery in case of something going boom, than your ISP - risky. You're potentially opening up your home computer and network - including personal files - if you become the target of a hacker with a few brain cells. You can grab a digitalocean droplet for $5 a month and I suspect there are cheaper options too.
  10. Dave is correct - it's simple enough. jQuery - jQuery UI - autocomplete Single Ajax call
  11. *Goes to write a bot to play a game to get some active numbers*
  12. # Use LEFT() in mysql, to cut a string shorter; $sql = "SELECT LEFT(mail_text, 20) AS mail_text, mail_time, userid, username FROM mail LEFT JOIN users ON (mail_from = userid) WHERE mail_to = $userid ORDER BY mail_id DESC LIMIT 3;"; $rs = $db->query($sql); # Make sure you make sure you have results to loop through; if ($db->num_rows($rs)) { while ($row = $db->fetch_row($rs)) { if ($row['userid']) { echo "<b>From:</b> <a href='viewuser.php?u={$row['userid']}'><font color=black>{$row['username']}</font></a><br>"; } else { echo "<br><b>From: <font color=red>SYSTEM</font></b>"; } # Echo straight to screen if you have nothing to do with a variable you're casting; echo date('n/d/y g:i', $row['mail_time']); # Cut out all the processing of the string, if you use LEFT - as said above; echo '<p>'.$row['mail_text'].'</p>'; } } echo "<a href='mailbox.php'>View Mailbox...</a></td></tr></table><br>";
  13. Throw them into div's, float left, set to 25% width and voila - 4 to a line. Throw in padding: 10px with a box-sizing:border-box and you're having some smexii times.   Edit Simply using code similar to this; http://codepad.org/K7ojmZEX You get a layout like; https://jsfiddle.net/mzym6Lc5/
  14. Assuming you're using PHP with the files ending in .php, you could simply do something like this;   <table style="background-image: url(images/backgrounds/<?=substr(str_replace('/', '', $_SERVER['PHP_SELF']), 0, -4); ?>.png);">   Simply sets the background-image to be the url with the following conditions; Images are in the directory - images/backgrounds Ends in PHP Images are PNG. -- Edit Codepad parses via t.php, which results in t.png http://codepad.org/kwyfk85q
  15. Aw, that sucks. I'm totally a fan of Zettiiiiiiiiieeeee..
  16.   Won't lie, I laughed at that comment. You are really going to blame a user for an error in your shiz? Your game is destined to fail.
  17. SRB

    ZiDDLe / Pkmn Helios

    Whoever downloaded it. Upload and send me a link :P
  18. A bootstrap 3 back end? New one too me.
  19. I remember you. Can we throw a party now?
  20. GetText API works for global text replacement within language files. Prepare for headaches if you don't know much about PHP though.
  21. Say what now? I get the impression all these errors are on a production server, so I'd definitely advice to turn error reporting off. To be fair, undefined variables are a warning, not an error, so it's safe to just suppress them or turn error reporting off. Depends on how anal you are about it though - I personally run error reporting at highest level because I don't like even the warnings.
  22. I can help, but help is reserved for people who show they are trying to help themselves. Forgive me for the confusion, I thought this was an open forum...
  23.   It's an update query. I never stated it was complete, just that it's simple to resolve. Did you even try to resolve it yourself, or just ask on here? You learn nothing when asking if your first point of call - try failing first, then asking.
  24.   Surely you can't find this hard? In your daily cron, add something to the effect of;   $sql = "UPDATE users SET hsteps = 10 WHERE hsteps < 10"; $db->query($sql);
×
×
  • Create New...