SA-MP Forums Archive
GetTickCount - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetTickCount (/showthread.php?tid=613566)



GetTickCount - Ahmed21 - 29.07.2016

Hello, I want to make a VIP system, and it works on GetTickCount, so if someone redeemed VIP for 30 days, it will store the TickCount and when the 30 days pass (in miliseconds) he loses the vip.

So, I have noticed that GetTickCount changes a lot if I restart the server, how to solve this problem? Should I store the tick count in the database before restarting?


Re: GetTickCount - Sew_Sumi - 29.07.2016

Shouldn't be using GetTickCount for this purpose. You should be using a getdate and gettime setup, especially when you are looking at a period of days, not just a minute.

GetTickCount simply shows the uptime of the server.


Re: GetTickCount - Ahmed21 - 29.07.2016

Okay thank you.