gettime function
#1

I've made a topic about this, but i still didn't understand stuff..
I want to try to make an command, which shows for how long the player has been online.
But i never got to understand how gettime works.

I'm thinking about this kind of stuff:

pawn Код:
CMD:onlinetime(playerid, params[]) {
    new string[64], Minutes;
    Minutes = gettime(minute);
    format(string, sizeof(string), "[NOTE] - You've been online for %d minutes!", Minutes);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    return 1;
}
And of-course this is just a random example command..
Would something like that work, or no?
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: 3 Guest(s)