26.01.2013, 12:23
Your seriously is not seriously for me. Maybe something is fucked up, but I'm trying to substract it for 2 days.
When player logs in I'm setting his onlineTime using gettime():
It's fine until I won't compare it with real time later.
[14:20:40] Time logged in: 1359206440
[14:20:44] 0 1359206444
When player logs in I'm setting his onlineTime using gettime():
Код:
playerInfo[pid][onlineTime] = gettime(); printf("Time logged in: %i", playerInfo[pid][onlineTime]);
Код:
new time = gettime(); printf("%i %i", playerInfo[id][onlineTime], time); format(formats, sizeof(formats), "Czas gry: %i m", (playerInfo[id][onlineTime] - time)); TextDrawSetString(specShowInfo[id][1], formats);
[14:20:44] 0 1359206444