Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Donators List   lmao
  2. Re: Donators List   Yours ^ Mine below This one looks a bit nicer. :P in my own way lol   $q = $db->query(sprintf("SELECT `donatordays`,`userid`,`level`,`username` FROM `users` WHERE (`donatordays` > '0') ORDER BY `donatordays`"));   ya'lls   $q = $db->query("SELECT donatordays, userid, level, username FROM users WHERE donatordays > 0 ORDER BY donatordays DESC"); Mine Why are either of you using sprintf? Its just not needed there, lol. And you don't need to Quote a Number like that. the '0' you can cause errors in some cases.
  3. Re: [REVIEW]Battle Century - Please review!! 2/10 Hard on eyes. and .co.cc
  4. Re: respectedmafia.com its plain 3 jobs and 3 crimes lol 2/10
  5. Re: Hitman Players [$30] naw i think this is more on the lines of Killah's Hitman mod. (If not Killahs....Probarly is lol)
  6. Re: [V2] Exp Cow List ($3.00) You mean a Black List? Or Enemy List? I'm sure thats how most poeple keep up with it..lol
  7. Re: need help with crons Just include_once("global_func.php"); and do like Lithium said. while (something) { event_add(user,message,connection) } And your done. If your sending event to eveyone on the game game in a cron. Then obviously you konw that your sending it to 10K peopel if you hav ethat many.
  8. Re: game folder wriatble failed are you even sure its the game folder rightable? Alos get off a free host...damn... Oh and for anyione that say oh they are doing it to learn....come on....thats "bs" and ya'll know it. If they where learning they would use LAMP or XAMP and use Local Host to learn. why waist time on a slow server to learn. No one will they want to make a quick buck.
  9. Re: Car Mod Help $db is not defined.. By time this is viewable I'm sure someone else would have answered it I saw it yesterday didnt answer cause its on here so much already. And thought someone would do it already. Each function on the page. has to have the globals defined example   global $ir,$c,$userid,$h;   needs to be   global $ir,$c,$userid,$h,$db;   Oh and this mod is paid....and that zip marked "Mods" that you probarly downloaded from a warez site Not saying name but im 98% sure i know where,...99% of those mods are illegal. (paid mods).
  10. Re: [Mccodes V2] Item Sell Update [Javascript!] Nice work...Small suggestion to add though On the line   Total sale price: <input type='text' name='total' style='background: black; font-family: Calibri; font-size: 12px; border: none; color: white;' value='$0' size='4'>   THey can edit the value..I suggest you change to   Total sale price: <input type='text' name='total' style='background: black; font-family: Calibri; font-size: 12px; border: none; color: white;' value='$0' size='4' readonly>   And now they can not change the value :)
  11. Re: Hosp And Jail Change Background error   you don't need the > 1 here ;) it returns true if the value is > 0 ;) Ok....what if the time is 1 Then your wont work. if you like to use it then Use > 0 not > 1
  12. Re: Max Stats stats are a decimal. Same thing thoug. Just increase the Structure number.
  13. Re: [any version] Removal of 1 minute crons   thats isnt even in the cron.. and you just proved my point...yours runs the function every time anyone loads any page... and cron runs it once a minute.. and if you know what your doing. .Your cron will be clean and efficient Not Long...my minute cron has 2 querys..........for example. I run 2 querys every min. Your way would run those querys Every load of every page by every person Its Impossible for your way here to be better.. Impossible. Your way only does it to be people that needs if...God i hope thats not the responce. Cuase mine only checks ones that needs it to.. so don't blame it on a lengthy cron..If they cant clean up their cron thats there fault... And i already said this would be ok for a small game. but alot of people online at one time..I see it as impossible. I would break it down like last time showing numbers of querys ran..but no point...cause you just looked right past that.
  14. Re: Register.php Help not read and write... Read and execute :) I think.....lol
  15. Re: Register.php Help sounds like a chmod problem lol
  16. Re: [any version] Removal of 1 minute crons dementor please read my post.... Also agree with Killah on that....if its not about this topic please post another thread...Please keep in on this topic...
  17. Re: [mccode v2] Owner Panel Who?
  18. Re: [mccode v2] Mining V2 Converted bluntman Set some defualts.. I would imagine that would fix it.
  19. Re: [any version] Removal of 1 minute crons Thanks for explainging that agian POG1...BUt I did understand 100% I wrote something like this 2 or 3 months ago. ANd its slow.... What I mean by that is...Every page load your checking that code..and in case of example   $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; }   Your loading that every page click....Like i was saying 20 players online 20 players every time they click the database is checked for that... Now on a Cron its only check when the cron is ran. Now I agree a 1 minute cron is not the best option. But I would not go with this still....Guess I didnt explain good.. Cause i really don't explain good... Best thing to do is to remove the 1 minute cron and add it to the 5 minute cron. THen you only have it running every 5 mintues....Now. That we have it on 5 minute cron Can you still honestly say/think. That running a check of the hosp/jail tiem every 5 minute. Is Slower than yoru way(checking eery click of a page by every single person online) Now i can see this faster if you onloy hoave 10 onlin AND you have 2000 people signed up Cuase in that factor your having 2000 checks rather than 10 but that can be fixed with somethign that eveyrone should ahve done anyway with adding time on the end of query WHERE laston < time() - 360;
  20. Re: [any version] Removal of 1 minute crons How can a time stamp be better? It runs everytime anyone loads a page. So 80 online clicking pages like crazy just playing the game they ahve a crap load of quersy running. Sorry but there is no way that running a query Every Load of a page by Every person or Even just that person is better than only running that query 1 time a minute. So lets see.......if 80 people clicked 1 page every minute...that means that query ran 80 different tiem in 1 minute On a cron it runs 1 time... Even with the query only selecting through it still has to check. so its stull running CPU its Imposible for this way to be better.
  21. Re: [any version] Removal of 1 minute crons Better way is a CRON from what I have been reading that is what everyone is saying....
  22. Re: [any version] Removal of 1 minute crons Total users online within the last 1 mins: 26 Total users online within the last 15 mins: 80 Total users online within the last 1 hours: 127 Total users online within the last 24 hours: 342 I would never use this. Crons are way to go. And those everyday..Not the most recorded. Game i would say is mostly successful cause it was never mentioned on here. lol
  23. Re: Some help with jobs.php error try using orignal and addinga } on line 58???
  24. Re: [V2] Quick Question - Crimes yes its possible lol....with quite alot of modifiying
  25. Re: Getting items to stack umm.... by "stack" you mean med X2 instead of med med ?? is that what you mean? If so are you using v2? If v2 then instead of $db->query("INSERT INTO INVETORY") use the function in the game... item_add(USERID, ITEMID, QTY); if your not using v2 that wont work. Hope this helps.
×
×
  • Create New...