02.07.2012, 19:43
If you want to acheive the integer with leading zeros, use %02d instead of the ternary operator. Example:
pawn Код:
format(string, sizeof(string), "Time %02d:%02d", hour, minute);