[HELP] Unix Timestamp
#7

Quote:
Originally Posted by _Jake_
View Post
If that's the case, Is it possible to get the remaining days instead?

Like "You have %d (E.G. 7 days) left on your VIP."
Sure, getting the remaining days is much easier, just compare the current time to the expiration time you stored before.

pawn Code:
new remaining_seconds = gettime() - User[id][ExpirationVIP];
new remaining_days = remaining_seconds / 3600 / 24;
Reply


Messages In This Thread
[HELP] Unix Timestamp - by JaKe Elite - 24.11.2014, 08:06
Re: [HELP] Unix Timestamp - by Jonesy96 - 24.11.2014, 09:04
Re: [HELP] Unix Timestamp - by JaKe Elite - 24.11.2014, 09:13
Re: [HELP] Unix Timestamp - by Mauzen - 24.11.2014, 09:20
Re: [HELP] Unix Timestamp - by Jonesy96 - 24.11.2014, 09:39
Re: [HELP] Unix Timestamp - by JaKe Elite - 24.11.2014, 09:58
Re: [HELP] Unix Timestamp - by Mauzen - 24.11.2014, 10:07
Re: [HELP] Unix Timestamp - by JaKe Elite - 24.11.2014, 10:10
Re: [HELP] Unix Timestamp - by Mauzen - 24.11.2014, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)