07.10.2014, 04:40
How to get player connected time for currunt session?
I have dini saving system in gamemode.
I have dini saving system in gamemode.
NetStats_GetConnectedTime(playerid);
The quickest method would be
pawn Код:
|
Connected time: %d Hours, NetStats_GetConnectedTime(playerid));
new secondsconnectedtime = NetStats_GetConnectedTime(playerid)/1000 new minutesconnectedtime = secondsconnectedtime/60 new hoursconnectedtime = minutesconnectedtime/60 Connected time: %d Hours, hoursconnectedtime);
The unit returned by this function is milliseconds
Код:
new secondsconnectedtime = NetStats_GetConnectedTime(playerid)/1000 new minutesconnectedtime = secondsconnectedtime/60 new hoursconnectedtime = minutesconnectedtime/60 Connected time: %d Hours, hoursconnectedtime); |