03.06.2011, 17:09
I made you a function, hopefully this is what you want
Edit: oh did slice ? well anyways this should work as well
pawn Код:
stock Comma(numbers) //by 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;
}