How to substract one integer value from other one
#9

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)