about numbers.
#1

Hi,

I have number for ex: 5.

I want to make it 05 i do it like that:

Code:
new numbers = 5;
new writetostringsy[ 50 ];
format( writetostringsy, 25,"%02d",numbers );
And i have another number:

new numbersx = 05;


And now, if i want to do like that:


Code:
if( numbersx == strval(writetostringsy) )
{
// CAN I DO strval and does it work?
}
Reply
#2

You can make it much easier
pawn Code:
new number,secondnumb;
number = 05;
//then
if(secondnumb == number)
{
blablabla
Reply
#3

But that what i show, does it work?
Reply
#4

How about testing it?
My guess is that it should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)