12.06.2016, 13:14
Good morning friends, how do I convert a real number to a value?
I want to show the money the players in $
I want to show the money the players in $
stock Comma(numbers) //Credit: Gamer931215
{
new temp[24],counter = -1;
valstr(temp,numbers);
for(new i = strlen(temp);i > 0; i--)
{
counter++;
if(counter == 3)
{
strins(temp,",",i);
counter = 0;
}
}
return temp;
}