How can formatnumber?
#6

Код:
convertNumber(value)
{
    // http://forum.sa-mp.com/showthread.ph...781#post843781
    new string[24];
    format(string, sizeof(string), "%d", value);
    for(new i = (strlen(string) - 3); i > (value < 0 ? 1 : 0) ; i -= 3)
    {
        strins(string[i], ",", 0);
    }
    return string;
}
Reply


Messages In This Thread
How can formatnumber? - by rockys - 23.12.2018, 01:46
Re: How can formatnumber? - by SyS - 23.12.2018, 01:51
Re: How can formatnumber? - by rockys - 23.12.2018, 08:23
Re: How can formatnumber? - by Dignity - 23.12.2018, 08:37
Re: How can formatnumber? - by DAKYSKYE - 23.12.2018, 09:04
Re: How can formatnumber? - by TheToretto - 23.12.2018, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)