18.06.2015, 14:26
This function converts the player's connected time from milli seconds to human readable format (horus, minutes and seconds).
Snippet from Players Library.
pawn Код:
stock GetPlayerConnectedTime(playerid, &hours, &minutes, &seconds)
{
new connected_time = NetStats_GetConnectedTime(playerid);
seconds = (connected_time / 1000) % 60;
minutes = (connected_time / (1000 * 60)) % 60;
hours = (connected_time / (1000 * 60 * 60));
return true;
}