Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. Re: Mailbox.php alerts you know what's pointless? bitching about my post and HD's one, i started to give you a hint where to lookup, IF you don't know where to look, as you asked... the LEAST you could've done was WAIT for me or someone else to reply. People around here help or not at their own speed. Comments as yours will only lead to flames on every single post you make! Your choice! *Nuff said*
  2. Re: Mailbox.php alerts   Just to add something to the above... Some of us do have a life outside and we are not always here!
  3. Re: Mailbox.php alerts they do not get an alert... that can be... though that IS NOT the file where alerts are displayed, as alerts are set up just fine in there ;)
  4. Re: Will Refills To Quickly/ Job Cron UPDATE users SET will = will + (maxwill/10) WHERE will < maxwill
  5. Re: Zebra Styled Tables keeping on track of my post and taking HD's example on the <tr> simply, try placing out my codebit and whenever you open a <tr> use <tr style="background: ".$color.";\">
  6. Re: If logged in redirect help you are making the wrong assumption... The user is already logged, goes to index.php if($_SESSION['loggedin']) { header("Location: index.php"); exit; } User is not logged, goes to login.php else if(!$_SESSION['loggedin']) { header("Location: login.php"); exit; }
  7. Re: Zebra Styled Tables after this... while($r=mysql_fetch_array($q)) {   add something along these lines...   if($trcolor == '0') { $color="#000000"; $trcolor++; } elseif($trcolor == '1') { $color="#FFFFFF"; $trcolor--; }   And use the $color to set the background color :)
  8. Re: Deleting an item? http://dev.mysql.com/doc/refman/5.0/en/delete.html
  9. Re: [MC-Codes][V2]Thugs (core system) a quick look at the code... and the problem is here...   $db->query("UPDATE `users` SET `money`= `money` - {$thugcost}, `thugs` = `thugs` + 1");   shouldn't this be...   $db->query("UPDATE `users` SET `money`= `money` - {$thugcost}, `thugs` = `thugs` + 1 WHERE `userid` = '{$ir['userid']}'");   Just in case, those who are using this... just replace that line and test it... Edited... Found another one...   $db->query("UPDATE users SET `thugtime` = `thugtime` + {$thugtraintime}");   should be...   $db->query("UPDATE users SET `thugtime` = `thugtime` + {$thugtraintime} WHERE `userid` = '{$ir['userid']}'");
  10. Re: Donator Gym V2 the bad on this one is that it seems to me that firecamp is using a mod that is there somewhere floating around these forums
  11. Re: [MC-Codes][V2]Thugs (core system) Lol, Strats finally discovered the gunpowder :P ;)
  12. Re: Yet another attack problem #1 for me. then probably you have the math on the hit ratios just plain "backwards", the best way for someone to help you out is for you to place the code for people to see it
  13. Re: [mccodes V2] Review staff.   Lol, "i need to be mean only to be kind" ;)
  14. Re: Usless comments in threads need to go bye bye   Big difference between CE members and kids. Is it? ;) sometimes it doesn't look like that! (i know i also have made my share of b*tching around too)
  15. Re: Yet another attack problem #1 for me. @CJ: that can depend on the higher level player stats... just check both, just because someone is on a higher level it doesn't mean their stats are bigger, also, as Dayo referred, it might also have with your own attack script!
  16. Re: Any ideas? it has been indeed hehe
  17. Re: Any ideas?   Simple and effective :)
  18. Re: [mccode v2] Stock Market. Working + Secured Quite nice, though i tried it, and you can win quite a load of cash, as stock prices would change upon each page refresh... not a good idea to allow this. besides that, the only note is the negative "price now". if it goes to minus, you could/should restrain it to either 0 and/or make users that have those stock shares, to lose them as price hits 0. ;)
  19. Re: Another Will Mod Question that code bit is not wrong, though if it lasts as you say, only 3 minutes instead the wanted 15... you need to have a look to the place where you decrease the "willtime" and check what might be wrong there...
  20. Re: help   if (abs($r['level'] - $ir['level']) > '100')
  21. Re: help with a chat try reading the readme.txt included... it says exactly what you need to know to install it
  22. Re: Inventory Trouble The issue here seems to be in the file that adds the items to shops not on the inventory one ;) Also, if you had that mod, it seems to me that you haven't deleted the mysql bits that belong to the mod you removed!
  23. Re: If you have an item, you can create another? HD: quite right on there... as he needs to have the items id's 32,33,34 to be able to create the item id 35... if one of those is missing... it'll return 0 rows otherwise it'll go just to a successfull pizza ;)
  24. Re: If you have an item, you can create another? Something along these lines... (using HD's code changing only the SQL statement   <?php include_once('globals.php'); echo '<h2>Lets Make Pizza!</h2>'; $stuff = $db->query("SELECT `inv_id` FROM `inventory` WHERE `inv_id` IN (32, 33, 34) AND `inv_userid` = '{$ir['userid']}'"); if(mysql_num_rows($stuff)) { item_add($ir['userid'], 35, 1); item_remove($ir['userid'], 32, 1); item_remove($ir['userid'], 33, 1); item_remove($ir['userid'], 34, 1); echo 'You successfuly made a pizza!'; } else { echo 'You do not have the sufficient ingredients yet.'; } $h->endpage(); ?>
  25. Re: [any version] Removal of 1 minute crons 14K queries executed in less than a second... but then... query cache is a b*tch, yet it is usefull, it tends to cause massive bottlenecks. This is why it goes fast. setting up a low query cache doesn't only avoids bottlenecks also, free's up the use of cpu. And unbelievebly... it still processes 14K+ queries in less than a second! My 2 cents ;)
×
×
  • Create New...