01.06.2015, 11:26
Just write it like this:
Greekz
Код:
stock IntegerWithDelimiter(integer, delimiter[] = ",") { new str[24],i; valstr(str,integer),i=(integer > 0) ? strlen(str)-3 : strlen(str)-4; for(; i>0; i-=3) strins(str,delimiter,(integer > 0) ? i : i+1,24); return str; }