Several questions
#1

like new minutes =3 ;
and new seconds = 60;

But what i need is when it becomes 3 or 2 (the minutes) , it should display as 02 or 03, and same for seconds, when seconds become 8 or 9, they should show like 08 or 09.. how to do?
Reply
#2

amm it's possible btw. amm u want to be shown in gamemodetext?

Ecko
Reply
#3

yes
Reply
#4

Quote:
Originally Posted by .::: Ecko :::.
amm it's possible btw. amm u want to be shown in gamemodetext?

Ecko
I suggest you go learn some english...

I would do it like this.
pawn Код:
if(minutes < 10) //9 and down
{
   format(whatever, sizeof whatever, "0%d", minutes);
}
Same with seconds.

Leopard
Reply
#5

use %02d instead of %d, then it will always be 2 numbers (like 15, or 09)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)