Shakeynath Posted June 19, 2010 Share Posted June 19, 2010 I have just had a message of a member of mine saying that he and all other members are not getting any will or EXP. Can someone help please ? Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted June 19, 2010 Share Posted June 19, 2010 Make sure all you're crons are running.. Quote Link to comment Share on other sites More sharing options...
Shakeynath Posted June 19, 2010 Author Share Posted June 19, 2010 Make sure all you're crons are running.. Okay ill check right away buddy :) Quote Link to comment Share on other sites More sharing options...
Shakeynath Posted June 19, 2010 Author Share Posted June 19, 2010 QUERY ERROR: Query was empty Query was Im getting this error when i try the fivemins cron "/ Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted June 19, 2010 Share Posted June 19, 2010 Show us the cron Quote Link to comment Share on other sites More sharing options...
Shakeynath Posted June 19, 2010 Author Share Posted June 19, 2010 <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } //brave update $query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave "; $query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave"; $query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp"; $query4="UPDATE users SET hp=maxhp WHERE hp>maxhp"; $db->query($query); $db->query($query2); $db->query($query3); $db->query($query4); $db->query($query5); //enerwill update $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0"; $query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy"; $query3="UPDATE users SET will=will+10 WHERE will<maxwill"; $query4="UPDATE users SET will=maxwill WHERE will>maxwill"; $query5=$thug = "UPDATE `users` SET `power`=`power`+(max_power/(12.5)) WHERE `power`<`max_power`"; mysql_query($thug); $db->query($query); $db->query($query5); $db->query($query2); $db->query($query3); $db->query($query4); if($set['validate_period'] == 5 && $set['validate_on']) { $db->query("UPDATE users SET verified=0"); } if($set['validate_period'] == 15 && $set['validate_on'] && in_array(date('i'),array("00", "15", "30", "45"))) { $db->query("UPDATE users SET verified=0"); } ?> Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted June 19, 2010 Share Posted June 19, 2010 mysql_query($thug); I don't see a thug anywhere :s comment it out Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.