Get current timestamp
#1

Hi all,

A simple quick question: how can I get the current system timestamp in PAWN? So not the timestamp of the ingame time, but the system time.

Thanks!
Reply
#2

gettime()
Reply
#3

Fail. Thanks!
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)