Format Cash
#10

pawn Код:
stock Comma(numbers)
{
    new temp[24];
    valstr(temp, numbers);
    for(new i = strlen(temp) - 3; i > 0; i -= 3)
    {
        if(temp[i - 1] != '-') strins(temp, ",", i);
    }
    return temp;
}
Not that hard, is it?
Reply


Messages In This Thread
Format Cash - by Sc0pion - 02.07.2015, 12:26
Re: Format Cash - by Youssef221 - 02.07.2015, 12:28
Re: Format Cash - by Sc0pion - 02.07.2015, 12:33
Re: Format Cash - by Youssef221 - 02.07.2015, 12:38
AW: Format Cash - by Kaliber - 02.07.2015, 12:42
Re: Format Cash - by Sc0pion - 02.07.2015, 12:47
AW: Re: Format Cash - by Kaliber - 02.07.2015, 12:50
Re: AW: Re: Format Cash - by Sc0pion - 02.07.2015, 12:55
AW: Format Cash - by Kaliber - 02.07.2015, 12:56
Re: Format Cash - by Threshold - 02.07.2015, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)