18.12.2015, 20:20
https://sampwiki.blast.hk/wiki/AddCommas
https://sampforum.blast.hk/showthread.php?tid=184328
https://sampforum.blast.hk/showthread.php?tid=184328
pawn Код:
stock ConvertToAmount(value)
{
new string[13], count = -1;
valstr(string, value);
for(new i = strlen(string); i > 0; i --)
{
count ++;
if(count == 3)
{
strins(string, ",", i);
count = 0;
}
}
return string;
}