26.01.2013, 14:45
Idiot. ^
playerInfo[pid][onlineTime] = gettime();
printf("Time logged in: %i", playerInfo[pid][onlineTime]);
[14:20:40] Time logged in: 1359206440 < -- (Server log)
new time = gettime();
printf("%i %i", playerInfo[id][onlineTime], time);
format(formats, sizeof(formats), "Czas gry: %i m", (time - playerInfo[id][onlineTime]));
TextDrawSetString(specShowInfo[id][1], formats);
prints; [14:20:44] 0 1359206444
When I use playerInfo[playerid][onlineTime] then it works. Da fak?
http://pastebin.com/bFDDLMpE Here's the command.
playerInfo[pid][onlineTime] = gettime();
printf("Time logged in: %i", playerInfo[pid][onlineTime]);
[14:20:40] Time logged in: 1359206440 < -- (Server log)
new time = gettime();
printf("%i %i", playerInfo[id][onlineTime], time);
format(formats, sizeof(formats), "Czas gry: %i m", (time - playerInfo[id][onlineTime]));
TextDrawSetString(specShowInfo[id][1], formats);
prints; [14:20:44] 0 1359206444
When I use playerInfo[playerid][onlineTime] then it works. Da fak?
http://pastebin.com/bFDDLMpE Here's the command.