Get current timestamp
#4

Example of how to use it in a /time command.
pawn Код:
CMD:time(playerid, params[])
{
    new hour, minute, second;
    GetTime(hour, minute, second);
    new string[128];
    format(string, sizeof(string), "It's %d:%d:%d", hour, minute, second);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    return 1;
}
Reply


Messages In This Thread
Get current timestamp - by baske007 - 09.06.2012, 21:11
Re: Get current timestamp - by ReneG - 09.06.2012, 21:12
Re: Get current timestamp - by baske007 - 09.06.2012, 21:13
Re : Get current timestamp - by ricardo178 - 09.06.2012, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)