Posts: 62
Threads: 23
Joined: May 2013
Reputation:
0
What is better to use gettime() or gettickcount() and why?
Posts: 420
Threads: 6
Joined: Dec 2013
Reputation:
0
GetTickCount - Returns the uptime of the actual server (not the SA-MP server) in milliseconds.
gettime - The function itself returns a Unix Timestamp.
It depends what are you working on if you want to limit a player so he can't talk for a half a second because he was spamming before then u se gettickcount, if you want to limit a player function for an amount of seconds like /report use gettime() + seconds
Posts: 118
Threads: 10
Joined: May 2013
gettickcount() returns UP TIME of host(operation system)
Example: 24h, 3 days, 13 weeks etc
gettime() returns CURRENT TIME of host(operation system) in TIMESTAMP...
Example: 172635447 means 11:10:01, 134534235 means 07:00:23 etc