Compare two dates and times..
#10

Store the return value of gettime() (without parameters) into a variable then later, call gettime() again and compare to whatever you want in seconds

Example:
pawn Code:
//new variable at top of script
new time;

//set variable
time = gettime();

//later, for compare:
if (gettime() >= time + 30) //30 seconds or more elapsed
Reply


Messages In This Thread
Compare two dates and times.. - by Outbreak - 23.04.2009, 15:05
Re: Compare two dates and times.. - by Rimeau - 23.04.2009, 15:38
Re: Compare two dates and times.. - by ICECOLDKILLAK8 - 23.04.2009, 15:42
Re: Compare two dates and times.. - by Joe Staff - 23.04.2009, 15:55
Re: Compare two dates and times.. - by Outbreak - 25.04.2009, 15:53
Re: Compare two dates and times.. - by Weirdosport - 25.04.2009, 16:11
Re: Compare two dates and times.. - by Joe Staff - 25.04.2009, 20:01
Re: Compare two dates and times.. - by Weirdosport - 25.04.2009, 20:18
Re: Compare two dates and times.. - by Outbreak - 25.04.2009, 23:14
Re: Compare two dates and times.. - by yom - 26.04.2009, 00:06

Forum Jump:


Users browsing this thread: 1 Guest(s)