12.04.2009, 12:18
float(number / 1000.0)
then use %.3f in your string.
Ex: format(str, 64, "Congratulations! You have just won $%.3f!", float(Winnings[playerid] / 1000.0));
It will show the way you want it to as long as the number is above 10,000 and below 100,000.
then use %.3f in your string.
Ex: format(str, 64, "Congratulations! You have just won $%.3f!", float(Winnings[playerid] / 1000.0));
It will show the way you want it to as long as the number is above 10,000 and below 100,000.