Questions
#1

What is better to use gettime() or gettickcount() and why?
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)