valstr HUGE BUG
#1

Ok guys , valstr is very bugged

I tryed this

pawn Code:
valstr(dgroup,1400000000); // 1.400.000.000 ( 1 billion and 400 milions )
    printf("%s",dgroup);
Ok , i run the program and it show corectly
but if i put a val more than 1.500.000.000 and little than 1.900.000.000, will do this

pawn Code:
valstr(dgroup,1500000000); // 1.500.000.000 ( 1 billion and 500 milions )
    printf("%s",dgroup);
it shows: 0000001500000000

And at least , if i put a val more than 1.900.000.000 , the program is freeze , and my CPU goes to 100%.
Reply
#2

after more tests , the most and good value is: 1.409.999.999
Reply
#3

Are you really using values that big?
Reply
#4

of course , for bank account , money cash etc.
Reply
#5

Use strcat and then strval :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)