gettime function
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
// global:
new ConnectTime[MAX_PLAYERS];

// OnPlayerConnect:
ConnectTime[playerid] = gettime();

// command /onlinetime:
...
format(string, sizeof(string), "[NOTE] - You've been online for %d minutes!", gettime() - ConnectTime[playerid]);
...
It will show you how many seconds you've been online. There are many posts/threads about converting to hours/minutes etc, search.
Ah.. thanks :d
Reply


Messages In This Thread
gettime function - by Kyance - 31.01.2014, 14:39
Re: gettime function - by Konstantinos - 31.01.2014, 14:42
Re: gettime function - by Kyance - 31.01.2014, 14:49
Re: gettime function - by Richie© - 31.01.2014, 14:50
Re: gettime function - by Kyance - 01.02.2014, 09:31
Re: gettime function - by Konstantinos - 01.02.2014, 10:02
Re: gettime function - by Kyance - 01.02.2014, 10:49

Forum Jump:


Users browsing this thread: 1 Guest(s)