12.07.2017, 01:51
Hi,
I'm trying to use the following code to add a 0 if the digit is below 10, but it doesnt appear on the textdraw:
Any tip?
Thanks.
I'm trying to use the following code to add a 0 if the digit is below 10, but it doesnt appear on the textdraw:
Код:
new wh_alert_seconds[2], wh_seconds[2]; if(seconds < 10) format(wh_seconds, sizeof(wh_seconds), "0%d", seconds); else format(wh_seconds, sizeof(wh_seconds), "%d", seconds); if(alert_seconds < 10) format(wh_alert_seconds, sizeof(wh_alert_seconds), "0%d", alert_seconds); else format(wh_alert_seconds, sizeof(wh_alert_seconds), "%d", alert_seconds);
Thanks.