Little question :)
#8

Just write it like this:

Код:
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;
}
Greekz
Reply


Messages In This Thread
Little question :) - by bgedition - 31.05.2015, 15:34
Re: Little question :) - by Konstantinos - 31.05.2015, 15:58
Re: Little question :) - by Vince - 31.05.2015, 16:54
Re: Little question :) - by Konstantinos - 31.05.2015, 17:29
Re: Little question :) - by bgedition - 31.05.2015, 17:44
Re: Little question :) - by bgedition - 01.06.2015, 11:12
Re: Little question :) - by Konstantinos - 01.06.2015, 11:25
AW: Little question :) - by Kaliber - 01.06.2015, 11:26
Re: Little question :) - by bgedition - 01.06.2015, 11:49

Forum Jump:


Users browsing this thread: 2 Guest(s)