RazorBladerz Posted March 18, 2009 Posted March 18, 2009 to add timestamps for the minute , five munute , hour and day . not just a timestamp but all the crons into time stamps? if yes pls IM or email me [email protected] Quote
POG1 Posted March 18, 2009 Posted March 18, 2009 Re: Is it possible to do this? Yes, it would only take minor edits. It would still need a cron to do something though Quote
RazorBladerz Posted March 18, 2009 Author Posted March 18, 2009 Re: Is it possible to do this? can u help me with it? Quote
POG1 Posted March 18, 2009 Posted March 18, 2009 Re: Is it possible to do this? Assuming you understand what a time stamp is I will do. For the jail and hospital you can just edit the current code. So where it puts them into jail or hospital it will be a number of minutes; a minute contains 60 seconds so all you need to do is multiply the minutes by 60 and add it to the current time stamp, the value will be a long number if you have it right. $jailTime = time() + ($jailTime * 60); Now you will need to check if they are in or not.. if($jailTime > time()) { echo 'This person is in jail'; $h->endpage(); die(); } The other ones may need a bit morethinking. Energy,will,nerve and HP will be possible with a "check on page load". The HP will need to be checked when someone attacks which could be done by creating a simple function. Quote
RazorBladerz Posted March 18, 2009 Author Posted March 18, 2009 Re: Is it possible to do this? well i only need the codes for the game to run . i dont know why but i cannot run the crons Quote
POG1 Posted March 18, 2009 Posted March 18, 2009 Re: Is it possible to do this? you only need the codes? :S Quote
RazorBladerz Posted March 18, 2009 Author Posted March 18, 2009 Re: Is it possible to do this? yea sorry to say that but i am only in training and know bonkers about it 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.