String error
#6

If you're going to have it use 12-hour clock on that string, you could use this if you want
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."));
EDIT: Well, forgot
pawn Код:
new hour, minute, sec;
    gettime(hour, minute, sec);
Reply


Messages In This Thread
String error - by raamiix - 15.03.2013, 21:55
Re: String error - by DiGiTaL_AnGeL - 15.03.2013, 21:58
Re: String error - by P3DRO - 15.03.2013, 21:59
Re: String error - by raamiix - 15.03.2013, 22:02
Re: String error - by DiGiTaL_AnGeL - 15.03.2013, 22:11
Re: String error - by [ABK]Antonio - 15.03.2013, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)