Kasabian Posted July 4, 2008 Share Posted July 4, 2008 is there an Alternative to crons? if so can you post how Thanks Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted July 4, 2008 Share Posted July 4, 2008 Re: Cron alternative? Yes there is you can use time() but i do not know much about it maybe look it up. Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 4, 2008 Share Posted July 4, 2008 Re: Cron alternative? Yep, php time stamps. http://uk.php.net/time Some mathematical knowledge may be required. I've never actually used time stamps, when it comes to the time i'll attempt to learn. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted July 5, 2008 Share Posted July 5, 2008 Re: Cron alternative? if your host is mad about the one minute cron get rid of it... change your hospital and jail times to multibles of 5 using an array and then use the 5 min cron to lower there times by 5 min... Quote Link to comment Share on other sites More sharing options...
Floydian Posted July 5, 2008 Share Posted July 5, 2008 Re: Cron alternative? we did a lengthy discussion about cron alternatives, search the forum for it. it should be easy to find for hosp times it goes like this hosp time = time() + 60 * $random; where $random is your random number of minutes you want them in hosp. then, if (hosp time > time()) { you're still in hosp} it's super simple. there is no one minute, or five minute cron on my game, and hosp and jail time are not run by crons at all. a benefit to this, is hosp time and jail time is exact to the second check it out on my game some time. if you have less than 3 minutes in hosp/jail, the seconds left is display with the minute. :D Quote Link to comment Share on other sites More sharing options...
Joel Posted July 5, 2008 Share Posted July 5, 2008 Re: Cron alternative? we did a lengthy discussion about cron alternatives, search the forum for it. it should be easy to find for hosp times it goes like this hosp time = time() + 60 * $random; where $random is your random number of minutes you want them in hosp. then, if (hosp time > time()) { you're still in hosp} it's super simple. there is no one minute, or five minute cron on my game, and hosp and jail time are not run by crons at all. a benefit to this, is hosp time and jail time is exact to the second check it out on my game some time. if you have less than 3 minutes in hosp/jail, the seconds left is display with the minute. :D well said! Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted July 6, 2008 Share Posted July 6, 2008 Re: Cron alternative? Very well said...I was trying give them an easy way out lol 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.