Hey guys,
I want to make a daily reward, should I use 'os.date' for that?
Thanks in Advance!
I would use os.time timestamps
[QUOTE=code_gs;52410388]I would use os.time timestamps[/QUOTE]
Just one last question:
If I use timestamps, will it automatically work like,
(20:00:00 - 01/02/2017) > (19:01:02 - 01/01/2017) = True ??
Check if the current day is =/= the recorded day
[QUOTE=Disseminate;52419841]Check if the current day is =/= the recorded day[/QUOTE]
What If I want to do it every 10min? 01 != 02 && 03 && 04 && 05 && 06 && 07 && 08 && 09 && 10?
I would to make alot of verifications, for every possible min also :\
Suggestions?
Check if [lua]minutes % 10[/lua] == 0
[QUOTE=Disseminate;52419938]Check if [lua]minutes % 10[/lua] == 0[/QUOTE]
Each player will have their "TimerToGetAwarded" if they start playing at 20:34:20 I want to them to get awarded at around 20:44:20 not 20:40 nor 20:50 etc...
[QUOTE=Pwned231;52419942]Each player will have their "TimerToGetAwarded" if they start playing at 20:34:20 I want to them to get awarded at around 20:44:20 not 20:40 nor 20:50 etc...[/QUOTE]
Then check for minutes-4 and seconds-20...
Sorry, you need to Log In to post a reply to this thread.