Ghostriders-oldnick Posted June 4, 2009 Posted June 4, 2009 :? could i ask ... could someone post cron fivemins please .. my brave on my game .. so i would be really greatfull if you could post the cron fivemins mod .. because my one isn't working and i need it to work badly ... www.gangsta-wars.ej.am Quote
AshTonka Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request yer sure man hold up a sec ok Quote
AshTonka Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request <?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; $db->query("UPDATE users set hospital=hospital-1 WHERE hospital>0"); $db->query("UPDATE `users` SET jail=jail-1 WHERE `jail` > 0"); $hc=$db->num_rows($db->query("SELECT * FROM users WHERE hospital > 0")); $jc=$db->num_rows($db->query("SELECT * FROM users WHERE jail > 0")); $db->query("UPDATE settings SET conf_value='$hc' WHERE conf_name='hospital_count'"); $db->query("UPDATE settings SET conf_value='$jc' WHERE conf_name='jail_count'"); ?> Quote
Ghostriders-oldnick Posted June 4, 2009 Author Posted June 4, 2009 Re: [V2] Cron Mods Request :-D well thnks guys .. but for some reason it's started to work again !! .. SO i'll tell u when i need help again .. anyways ... JOin www.gangsta-wars.ej.am .. need new staff members to make crimes,items etc on my game !!! SO SIGN UP AND PM ME ID 1 ON MY GAME !!! :-D Quote
CrazyT Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request @ AshTonka.. Use code tags please. :-D like.. [code] Some code here [/code] Quote
AshTonka Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request that the code that i got with the V2 mc codes and i have had very very experienced coders have a look at them and they say nothing is wrong with them so no i will not use code tags :-D :-D Quote
Ghostriders-oldnick Posted June 4, 2009 Author Posted June 4, 2009 Re: [V2] Cron Mods Request actually just incase post some crons to help with my will !! it's down again I THINk lol Quote
Lithium Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request UPDATE users set will = will + maxwill/10 WHERE will < maxwill; UPDATE users set will = maxwill WHERE will > maxwill; Quote
wolfe Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request that the code that i got with the V2 mc codes and i have had very very experienced coders have a look at them and they say nothing is wrong with them so no i will not use code tags :-D :-D The code tags are used in the post, not in the code. It helps keep the posts from stretching out for a mile. Quote
D T K Posted June 4, 2009 Posted June 4, 2009 Re: [V2] Cron Mods Request Tonka did you <a href='blank.php'> your links in Explor ethey dont work Quote
AshTonka Posted June 5, 2009 Posted June 5, 2009 Re: [V2] Cron Mods Request the bank in my game works fine if your having problems mail me on my game Quote
CrazyT Posted June 5, 2009 Posted June 5, 2009 Re: [V2] Cron Mods Request UPDATE users set will = will + maxwill/10 WHERE will < maxwill; UPDATE users set will = maxwill WHERE will > maxwill; Can use Least(); <?php //Only for colors.. $db->query("UPDATE `users` SET `hp` = LEAST(`hp` + (`maxhp` / 3), `maxhp`)"); Would be the same as. <?php //Only for colors!! $db->query("UPDATE `users` SET `hp` = `hp` + (`maxhp` / 3) WHERE `hp` < `maxhp`"); $db->query("UPDATE `users` SET `hp` = `maxhp` WHERE `hp` > `maxhp`"); :-D Quote
Karlos Posted June 6, 2009 Posted June 6, 2009 Re: [V2] Cron Mods Request //Why not go for the whole lot and add an IF() with using LEAST() $db->query( "UPDATE `users` SET `brave`=LEAST(`brave`+((`maxbrave`/'10')+'0.5'), `maxbrave`), `hp`=LEAST(`hp`+(`maxhp`/'3'), `maxhp`), `will`=LEAST((`will`+'10'), `maxwill`), `energy`=IF(`donatordays`<>'0', LEAST(`energy`+(`maxenergy`/'6'), `maxenergy`), LEAST(`energy`+(`maxenergy`/'12.5'), `maxenergy`))" ); Quote
Gucci Mane Posted September 25, 2009 Posted September 25, 2009 code tags dont mess nothing up dude... Its makes the code like this it dont edit your code, DUHHH!!! Quote
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.