clock
#3

Quote:
Originally Posted by Seven_of_Nine
Посмотреть сообщение
pawn Код:
if(minutes < 10) {
    format(strr,sizeof(strr),"%d:0%d",minutes,seconds);
} else {
    format(strr,sizeof(strr),"%d:%2d",minutes,seconds);
}
that might work.. also u mean (seconds < 10) not minutes ?

is that the only way? why doesnt %2d work tho ? its suppose to force it into two digits.. :/
Reply


Messages In This Thread
clock - by jamesbond007 - 28.12.2011, 19:58
Re: clock - by Seven_of_Nine - 28.12.2011, 20:03
Re: clock - by jamesbond007 - 28.12.2011, 20:05
Re: clock - by Seven_of_Nine - 28.12.2011, 20:08
Re: clock - by jamesbond007 - 28.12.2011, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)