Needed help on formating Cash
#1

Hello Community, did anyone knows if i enter a value like 9999999999 then it's only returns 1.410.065.407 but i want to get 9.999.999.999 anyone knows how to solve this ?
pawn Код:
stock GetCashResult(Betrag)
{
    new idx[20], part;
    format(idx, sizeof(idx), "%i", Betrag);
    part = strlen(idx)-3;
    while(part > 0)
    {
        strins(idx, ".", part);
        part -= 3;
    }
    return idx;
}
Reply


Messages In This Thread
Needed help on formating Cash - by Tigerkiller - 03.07.2012, 15:29
Re: Needed help on formating Cash - by Vince - 03.07.2012, 15:34
AW: Needed help on formating Cash - by Tigerkiller - 03.07.2012, 15:36
Re: Needed help on formating Cash - by [MM]RoXoR[FS] - 03.07.2012, 16:49
Re: Needed help on formating Cash - by Vince - 03.07.2012, 17:13
Re: Needed help on formating Cash - by Roko_foko - 03.07.2012, 17:45
Re: Needed help on formating Cash - by [MM]RoXoR[FS] - 04.07.2012, 03:28
Re: Needed help on formating Cash - by Shelby - 04.07.2012, 03:40
Re: Needed help on formating Cash - by [KHK]Khalid - 04.07.2012, 04:03
Re: Needed help on formating Cash - by MP2 - 04.07.2012, 05:11

Forum Jump:


Users browsing this thread: 3 Guest(s)