Adding to a number some note.
#1

Hey,
So Let's say that I have this number :
123456

And I want to turn this number to:
123-456

So how can I Do it ?
Thank you.
That's my first theard in here.
Reply
#2

pawn Код:
stock Converter(number)
{
            new num[30];
            if(number >999)
            format(num,sizeof(num),"%d-%d",number/1000,number%1000);
            return num;          
}
try it
Reply
#3

Works !
Thank you very much !
REP++ FOR SURE !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)