15.03.2013, 22:26
If you're going to have it use 12-hour clock on that string, you could use this if you want
EDIT: Well, forgot
pawn Код:
//This will display 12-hour clock instead of 24-hour clock.
format(string, sizeof(string), "%02d:%02d %s", hour>(12)?(hour-12):(hour), minute, hour>(12)?("P.M."):("A.M."));
pawn Код:
new hour, minute, sec;
gettime(hour, minute, sec);