10.03.2016, 16:57
PHP код:
stock AddCommasLY(string[]){
new tStr[32];
format(tStr,sizeof(tStr),"%s",string);
if(strlen(tStr) < 4) return tStr;
new iPos = strlen(tStr), iCount = 1;
while(iPos > 0)
{
if(iCount == 4)
{
iCount = 0;
strins(tStr,",",iPos,1);
iPos++;
}
iCount++;
iPos--;
}
return tStr;
}