17.06.2014, 05:06
Quote:
Who records milliseconds? It would just be a more wasteful calculation. Unix is in straight up seconds. Not to mention, you wouldn't be able to apply it directly to measure from the time of login to disconnect, because it starts counting at OnPlayerConnect which isn't always what people want.
@Type-R - PM me your script and I will just add it straight in to save us both time. EDIT: By the way, Gettime() is a SA-MP function, so I'm not quite sure what you're trying to prove :l |
I meant that SA-MP already has a function that is dedicated to get the time that a player has been connected to the server.
You just divide the time by 1000, and you get seconds.
pawn Код:
NetStats_GetConnectedTime(playerid) / 1000; // Seconds.
Anyways, it's up to Type-R to choose witch method he wants to use.