Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: 5 min cron alternative with the brave just try and break it down like lithium did with the energy..
  2. Re: Server Time in Header   echo date("g:i a");
  3. Re: [Review] Chaos Relic - www.chaosrelic.com the first layout is nice but when you login its in a frame which spoils it
  4. Re: [mccode v1 v2] player card if(isset($_GET['id']) AND ctype_digit($_GET['id'])) { $id = mysql_escape(trim($_GET['id'])); } Wats this about? You check if it is a number then escape and trim it which are string functions.
  5. Re: Need a Windows Server!! Sponsor me. cannot VB connect to a Linux server??
  6. Re: [any V] Possible mod for prevention of SQL injections on DP's (item version) You will need to actions based on the values of the data. For example you will be using numbers, so accept only numbers ;)   if(isset($_GET['dp']) AND ctype_digit($_GET['dp'])) { echo 'number'; }   You will probably find many tutorials that show many different ways of doing so.
  7. Re: Mccodes v2 - Jail,Hospital,Courses Timer To have time down to the seconds it will need to use a timestamp which the mccode hospital and jail do not use as standard. To then count down it would need JavaScript to do that.
  8. Re: [V2]Updated Header[V2]   $key = substr($key = basename($_SERVER['PHP_SELF']), 0, strpos($key, ".")); $page = isset($table[$key]) ? $table[$key] : " ";   whats that for?
  9. Re: [any version] Removal of 1 minute crons Your wrong. Someone is put into hospital for an hour, so 60 mins. With a cron it would take 1 query to add the number into the database then another 60 queries to decrement the value. With a total of61 queries. With the method i suggested it would take 1 query to update them into the database resulting in 1 query in total. Thats almost a 100% reduction in queries..
  10. Re: [any version] Removal of 1 minute crons It seems as your chatting out your ass.
  11. Re: [any version] Removal of 1 minute crons @ alabama. In your game you will be checking for people in hospital with something like this. if($r['hospital']) { echo 'this user is in hospital'; }   I don't see how it will be faster to run a cron to decrement the values every minute, when you can just use something like this. if($ir['hospitalTime'] > time()) { echo 'this user is in hospital'; }   So your telling me instead of using a single time function you would rather use lengthy crons..
  12. Re: [any version] Removal of 1 minute crons I think you read wrong.. http://en.wikipedia.org/wiki/Unix_time If you wanted to put someone in hospital for 15 mins you would work out when they come out of hospital. Here is some code to explain it a bit better.   $hospitalTime = time() + (60 * 15); // this will result in 15 mins from the current stamp // check if they are in hospital if($hospitalTime > time()) { echo 'this user is in hospital; }
  13. Re: [any version] Removal of 1 minute crons A better way is to get rid of any sort of 1min "cron". Just use timestamps on hospital and jail..
  14. Re: Nice Day Logout   Correct lol, For anyone who will complain check the manual.
  15. Re: [V2] Help Needed Try printing each variable from that, it may be resulting in a 0 because a variable don't exist or is NULL.
  16. Re: Phishing site problem! if you have a dedicated why are you rockin the free domains.
  17. Re: [v2] Car Mods   Yeah. Then a for loop to stuck it back together probly. or you could try this; http://dev.mysql.com/doc/refman/5.0/en/ ... _concat-ws
  18. Re: Phishing site problem! simple, get a paid host.
  19. Re: [V2] Very Simple Help Needed playing you? hardly..
  20. Re: [any version] Removal of 1 minute crons http://pog1.co.uk/updates.php
  21. Re: [any version] Removal of 1 minute crons If you are looking at the speed with the 5 min cron it will be a big difference. In the cron it updates energy, will, brave etc. Updating everyone in the user base will take quite some time. If you have it update per user only when they are online it will be a big difference.
  22. Re: [v2] Car Mods you could separate each of them names with a comma and turn like 20 queries into 1
  23. Re: [v2] Car Mods add cars_owned to the user table
  24. Re: FLASH MENU ($30) I would probably be able to make that menu in CSS which would be a better option.
  25. Re: Hospital time bug FIX here! echo 'Cheaters dont get no where.'; That would mean cheaters get somewhere ;)
×
×
  • Create New...