SA-MP Forums Archive
Number separator - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Number separator (/showthread.php?tid=635125)

Pages: 1 2


Re: Number separator - Fairuz - 05.06.2017

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.


Re: Number separator - CheezIt - 05.06.2017

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.