17.09.2015, 00:49
Oh sorry sir, i got this wrong. Actually the time is in seconds.
You can multiply them with 60. For example, you want maximum time to be 10 hours(10 * 60 * 60) and minimum to be 1 minute(60).
The timer works on seconds so your code would be:
The first check is for maximum and the second for minimum.
You can multiply them with 60. For example, you want maximum time to be 10 hours(10 * 60 * 60) and minimum to be 1 minute(60).
The timer works on seconds so your code would be:
pawn Код:
if(time > 10 * 60 * 60 || time < 60)