Number separator
#21

Quote:
Originally Posted by JasonRiggs
View Post
But it ain't string, he wants to make commas between each 3 numbers, which means Integer mister not string..
It has commas,it's a string.

@skuller12, It seems that you don't properly read CheezIt's example.
Reply
#22

Quote:
Originally Posted by skuller12
View Post
It is known, you are a fetus, this code is used on many Romanian servers and does not even produce a bug.

My code works as follows:

Ex:

Your code

Code:
format(string, 256, "Money: $%d", FormatNumber(money));
My code:

Code:
format(string, 256, "Money: $%s", FormatNumber(money));
My function is string type, it requires %s
Take a look at the code, it's using "%s". Besides, how's that even possible? There's no way to store commas in an integer...

Your function is horrible, it may work, but keep in not that if-then's aren't efficient AT ALL so your function isn't either.

Quote:
Originally Posted by JasonRiggs
View Post
But it ain't string, he wants to make commas between each 3 numbers, which means Integer mister not string..
Commas aren't a part of an integer... Go back to kindergarten.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)