15.07.2015, 09:47
Hello guys , i have a little question for you :
How can i make a Integer who is > 1000 to appear me 1,000 or if it's 1232344 for example it appear 1.232.344 ! sorry for my really bad english , so i left a code down there ... maybe see what i say ..
And i want message to look like those message [depends of money]:
Hello, you have $3.496 ! ==> means $3496
Hello, you have $232.127 ! ==> means $232127
Hello, you have $3.232.566 ! ==> means $3232566
Hello, you have $232.232.566 ! ==> means $232232566
Hello, you have $1.032.232.566 ! ==> means $1032232566
I think you understand what i try to explain with my very bad english o.O
How can i make a Integer who is > 1000 to appear me 1,000 or if it's 1232344 for example it appear 1.232.344 ! sorry for my really bad english , so i left a code down there ... maybe see what i say ..
Код HTML:
new String[128]; format(String, sizeof(String), "Hello, you have {008000}$%i{FFFFFF} !", GetPlayerMoney(playerid)); SendClientMessage(playerid, -1, String);
Hello, you have $3.496 ! ==> means $3496
Hello, you have $232.127 ! ==> means $232127
Hello, you have $3.232.566 ! ==> means $3232566
Hello, you have $232.232.566 ! ==> means $232232566
Hello, you have $1.032.232.566 ! ==> means $1032232566
I think you understand what i try to explain with my very bad english o.O