Jump to content
MakeWebGames

Lithium

Members
  • Posts

    1,099
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Lithium

  1. what should you do... first, check with hosting if they allow 1 minute cronjobs then after knowing the answer to that... act accordingly! either you can use them and are set incorrectly, or you cannot and need to change for another alternative (i can suggest using forum search functions for the keyword "timestamps")
  2. hmmm... seems you're re-inventing the wheel, as the mod on the site has exactly those functions! :)
  3. @mygunwars there's one quite old floating around just like that!
  4. $copper<img src='images/Copper.png'/>"; return $moneydone;   maybe something like...   $copper = ($copper == "000") ? "" : "<img src='images/Copper.png'/>"; return $moneydone;
  5. Check the fields, as you have them on the OP, it's either a missing or has a field more to count...
  6. no error thrown out? as off regular crimes table on lite it throws a
  7. if is_int($points % 100) { do something } other than that, you need to somehow check each offer... add a new table let's say with userid and reward_level on is_int($points % 100) where points are 100, is_int will return 1 add the userid and reward_level (as 1) to the table, next check will verify that 100 points have already taken the reward, so it will only deliver on next phase , is_int($points % 100) where points are 200 is_int will return 2 etc etc etc
  8. You are right... THIS IS SPARTA!!!!!!!!!!!!!!!!!!!!!!
  9. MehWizz. ´nuff said!
  10. But the fact is that something similar will only satisfy that condition if $points = 0, and obviously the outcome on the payout = 0 as well!
  11. Lithium

    Register.php

    honestly... that ought to be true... IF you are storing the passwords as plain text!
  12. Popcorn Developer too, badass? :P
  13. @Silverstar: the only "badass" around here is DJK! :D @iExze and ROZ: neither of you are correct... you "program" with your brain, computer and/or other means, such as paper, are only a way to make it "readable" and somehow useful (or not) :)
  14. A quick look, lines 22-23 you have a missing closing bracket if (isset($_GET['maxlevel'])) { $maxlevel = ($_GET['maxlevel']); // if username, maxlevel and minlevel is set   Ought to be if (isset($_GET['maxlevel'])) { $maxlevel = ($_GET['maxlevel']); } // if username, maxlevel and minlevel is set   this is only a guess though... :)
  15. Working for me on FF, so no idea whats the issue... user/pass: muh
  16. Supposably that includes a valid license of the software...
  17. I believe HD is asking if there is no available source , that somehow will there be some functions and/or some demo modules for those who develop to be able to do it to NWE... Which could be an interesting approach, having those "demos" to whoever wants to make those modules, either they are free or not!!!
  18. Just an opinion... instead using users table (yes the one that's too much filled) why not using an extra table, to make it a little cleaner? I know it is only one field more, but overall the less you add to users table the better.
  19. Quite similar the class used in CodeIgniter and the one in Zend Framework as well! Also Postgre as something like this actually :)
  20. Try using fixed width bars, http://makewebgames.io/showthread.php/35989-Progress-bar-All-versions-all-engines <- this might help ;)
  21. Lithium

    Convert my chat

    http://makewebgames.io/showthread.php/40219-Ajax-Gang-Channel-Chat-System-15
  22. hmmm not a hard decision... Gentoo, Apache, Oracle, a decent firewall in between (probably Untangle), sftp, and sshd!
  23. Try this one... addhit() slightly changed only   <?php include "globals.php"; switch($_GET['action']) { case "addhit": addhit(); break; default: index(); break; } function index() { global $db,$ir,$c,$userid,$h; print " <a href='hitlist.php?action=addhit'><h3>Add a Hit!</h3></a> Hits that are up: <table width='80%%' cellspacing='2' cellpadding='2' class='table' border='1'> <th>User</th> <th>Bounty</th> <th>Level</th> <th>Attack!</th> </tr> "; $SELECT = mysql_query(" SELECT hl.*, u.userid, u.username, u.level FROM hitlist AS hl LEFT JOIN users AS u ON (u.userid = hl.hitADDED) ORDER BY userid ASC" ); while($bounty=mysql_fetch_array($SELECT)) { print " <tr> <td>".finduser($bounty['userid'])." [{$bounty['userid']}]</td> <td>\$".number_format($bounty['hitBOUNTY'])."</td> <td>".number_format($bounty['level'])."</td> <td><a href='attack.php?ID={$bounty['userid']}'>Attack</a></td> </tr>"; } echo "</table>"; } function addhit() { global $db,$ir,$c,$userid,$h; $_POST['user'] = abs(@intval($_POST['user'])); if($_POST['user']) { $sel = mysql_query("SELECT hl.*, u.username, u.level, u.hospital, u.jail, u.userid FROM hitlist AS hl LEFT JOIN users AS u ON ({$_POST['user']} = hl.hitADDED) WHERE userid = {$_POST['user']}"); $row = $db->fetch_row($sel); $costrand = mt_rand(50000,70000); $cost = ($row['level'] * $costrand); if($_POST['user'] == $ir['userid']) { die("Why are you trying to place a hit on yourself?"); } if($cost > $ir['money']) { die("You do not have enough money to place a hit on {$row['username']}"); } //This else if below is a bit messed up too. It outputs the die message when a user exists if(!$db->num_rows($sel)) { die("No user exists with this ID!"); } if($_POST['user'] == $row['hitADDED']) { die("{$row['username']} is already on the hitlist!"); } //The else if below this are the messed up ones if($row['hospital'] > 0) { die("This user is in the hospital and therefore cannot be placed on the hitlist."); } if($row['jail'] > 0) { die("This user is in jail so a hit cannot be placed on them."); } else { $db->query("INSERT INTO hitlist VALUES ('','{$ir['userid']}','{$_POST['user']}','$costrand')"); $db->query("UPDATE users SET money = money - $cost WHERE userid = {$ir['userid']}"); event_add($_POST['user'], "You were placed on the hitlist by ".finduser($ir['userid'])."!"); print "{$row['username']} added to the hitlist! The bounty is \$".number_format($cost)." and has been taken by the hitmen contractors. <a href='hitlist.php'>> Back</a>"; } } else { echo " Adding a hit: <form action='hitlist.php?action=addhit' method='post'> <table width=50% border=2> <tr> <td>User ID:</td> <td><input type='text' name='user' /></td> </tr> <tr> <td colspan='2' align='center'><input type='submit' value='Add to hitlist!'></td> </tr> </table> </form> "; } } ?>
  24. raw logs show nothing, and sorry to say but that is your own fault! Those issues are being discussed for a few years, and a few ways to fix them are widely spread around here.p You need help? Sure, someone might give you some help, but you need to open your wallet if you don't know how to do it. And an advice... There are only a couple of people around here who might do the trick effectively.
  25. SomeRandomBastard: Your answer was about Android and I answered to YOU ;)
×
×
  • Create New...