Jump to content
MakeWebGames

SRB

Members
  • Posts

    785
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by SRB

  1. The line was commented out as I don't have MC Codes on my server, so don't have any of the tables etc. That would have just gave me an error. That said, if it wasn't needed - I would have just deleted the line of code completely.
  2. I moved skype: MrMarlow_
  3. None that I have come across. If you pass an array etc to filter_var, it fails, so no it is not needed. Quick script though, so I'm not too fussed what was in it :P
  4. I just threw a quick script together, which could be expanded upon, but for now, it's far more stable than what you have; Test Images for being an image If your testing returns good most of the time, feel free to use the code; Code
  5. I believe the the one on mc codes still contains bugs that I provided fixes for before. That's if it's the one by Cronus. If it's by someone else, I haven't seen the code so disregard the above. As for the fixes, they were posted on here a long time ago and I had all my posts cleared a year or 2 ago, so can't remember the problems off the top of my head. Haven't looked at the one on here either. I may do later
  6. 1. Move crons below document root; 2. Change paths of includes to go above the level they are at; 3. Change cron tab locations;
  7. It does? May want to unsign it then and hit 4,294,967,295, but lose the ability to allow negatives. Never really found a use for signed integers in these games, to be honest. Take banks for example - you lose a whole negative range for the sake of -1 to say you don't have one, but then end up with a hard cap of half of the maximum, when unsigned, as a result. Good database structure!
  8. Omg, a real female... on the interwebz!? :o
  9. SRB

    Scam Alert

    Some emails don't automatically download remote images...
  10. "More on that later" and then "think I've explained all i can" without adding more on that, later.
  11. Use my avatar if you like, for that >.<
  12. Not looked through the list, but nothing on graphic river?
  13. So you an the items you wish to sell, with their given monetary values, then add currencies in singulars with their currency values; End result, you enter amounts for each of the things you want
  14.   Something to the effect of;   <?php $sql = "SELECT userid, hPRICE FROM users LEFT JOIN `houses` ON maxwill = hWILL WHERE maxwill != 100"; $result = $db->query($sql); if ($db->num_rows($result)) { while ($row = $db->fetch_row($result)) { $sql = "UPDATE users SET money = money + " . $row['hPRICE'] . ", maxwill = 100; WHERE userid = " . $row['userid']; $db->query($sql); } }
  15. I want the encryption included. I wanted to break it *sigh*
  16. Finding ways to minimise code length is only really useful in friendly competitions. This isn't 1990 and we no longer run high end servers on 256mb of memory, so guess what that means? We don't need to micro optimise, thankfully. Why thankfully? We can no write code that humans can read too, which means programming is no longer authoring books that can only be read by servers. Heres my approach to this. More lines than most posted here... but it's easy to read, so in the future, maintaining and updating will be a breeze.   <?php // Initial vars; No point checking for the else statement // if it exists, it will over-write; $on_hand = 'None'; $on_hand2 = 'None'; $on_hand3 = 'None'; $on_hand4 = 'None'; $on_hand5 = 'None'; $on_hand6 = 'None'; // Create array - why do these run in 3s? $items = '84, 87, 90, 93, 96, 99'; // Create query; $sql = "SELECT * FROM inventory WHERE inv_userid = " . $ir['userid'] . " AND inv_itemid IN (" . $items . ");"; // Query for results; $result = $db->query($sql); // Check it returns some data - why bother attempting to process the data if no results? if ($db->num_rows($result)) { // Loop results, since they exist; while ($row = $db->fetch_row($result)) { // Check item id is not zero or blank; and has a quantity if ($row['inv_itemid'] != 0 && $row['inv_itemid'] != "" && $row['inv_qty'] > 0) { // Passed all checks? Assign the values; switch ($row['inv_itemid']) { case "84": $on_hand = $inv['qty']; break; case "87": $on_hand2 = $inv['qty']; break; case "90": $on_hand3 = $inv['qty']; break; case "93": $on_hand4 = $inv['qty']; break; case "96": $on_hand5 = $inv['qty']; break; case "99": $on_hand6 = $inv['qty']; break; default: /*do nothing*/ echo ""; break; } } } }   It's all well and good cutting lines, if you are actually cutting waste - doing it just to try and look smart will only make you look st00p1dz. (No more so than writing "st00p1dz" though) #nuffSaid.
  17. $id = array_key_exists('id', $_POST) && (ctype_digit($_POST['id']) || is_int($_POST['id'])) ? $_POST['id'] : FALSE ; if (!$id) { exit('Nooooooooooooooooooooo'); }   That is all.
  18. Nothing free about the options. Registering is a cost of time. Free: without charge, free of charge, for nothing.
  19. You suck. Skyped pastebin links. #thatIsAll
  20. SRB

    Laptops

    Shame its auto correct doesn't work.
  21. All your answers can be found by google. First result; http://www.currys.co.uk/gbuk/gaming/pc-gaming-accessories/pc-gaming-accessories/other-gaming-accessories/hauppauge-hd-pvr-2-gaming-edition-game-capture-21354568-pdt.html?gclid=CjwKEAiAxZKmBRD_5cCvs8SbxXsSJADZBCmdItUN4q-bLqXbBixnWhLdMRseWY-SFZPlEZpM40KSsxoCas3w_wcB&srcid=198&cmpid=ppc~gg~~~Exact&mctag=gg_goog_7904&s_kwcid=AL!3391!3!53179493059!!!g!90119924419!&ef_id=VMGGagAABfMKzimZ:20150125133402:s
  22. Guess I must be sad because I remember the second amounts up to a day. After a day and I have to calculate it :D
  23. 86400 then :P
  24. SRB

    Laptops

    In looks, there's not a lot of difference - it's all internals. Air: 1.4 Ghz and 4GB Pro: 2.6Ghz and 8GB [ATTACH=CONFIG]1801[/ATTACH]
  25. SRB

    Laptops

    Does that mean you have the Air? AFAIK, the Early 14 model is the Air and the Mid 14 is the Pro.
×
×
  • Create New...