25.11.2012, 23:34
It has been awhile since I did anything in PAWN and have forgotten how to use timestamps, sort of.
I am trying to display the date/time of someone being banned, as well as when they will be unbanned. This is part of my current code:
I want to display the date/time strings like this: "Sunday, January 1, 2013 14:00"
I have taken a look at CTime by RyDeR`, but I got a bit confused.
Can anyone help?
I am trying to display the date/time of someone being banned, as well as when they will be unbanned. This is part of my current code:
pawn Код:
new szString[128];
SendClientMessage(playerid, COLOR_RED, "You are banned from this server.");
SendClientMessage(playerid, -1, " ");
format(szString, sizeof(szString), "You were banned by {E70000}%s {FFFFFF}on %s.", szAdminName, szBanDateTime);
SendClientMessage(playerid, COLOR_WHITE, szString);
format(szString, sizeof(szString), "You will be automatically unbanned on {E70000}%s{FFFFFF}.", szUnbanDateTime);
SendClientMessage(playerid, COLOR_WHITE, szString);
Kick(playerid);
I have taken a look at CTime by RyDeR`, but I got a bit confused.
Can anyone help?