Problem with count time
#1

Hi,

Problem is when player relog to server time is same:

I want, when player disconnect from server his "Current Online Time" to reset.
Код:
format(string, sizeof(string), ""white"Current Online Time: "grey"%02d:%02d:%02d\n", g_time[targetid][2], g_time[targetid][1], g_time[targetid][0]);
strcat(string2, string);
format(string, sizeof(string), ""white"Total Online Time: "grey"%02d:%02d:%02d\n", User[targetid][accountGame][2], User[targetid][accountGame][1], User[targetid][accountGame][0]);
Thanks.
Reply
#2

pawn Код:
public OnPlayerConnected(playerid)
{
    g_time[playerid][2] = 0;
    g_time[playerid][1] = 0;
    g_time[playerid][0] = 0;
    return 1;
}
Reply
#3

Thanks.
+REP.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)