money with "."
#1

I use this:
PHP код:
stock NumberWithSign(const number, const sign[2] = "'")
{
    new 
str[10 EOS];
    
format(strsizeof(str), "%i"number);
    for(new 
strlen(str)-30-= 3)
    {
        
strins(strsignj);
    }
    return 
str;
}
CMD:setmoney(playeridparams[])
{
    new 
pIDvalue;
    if(
PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1"{FF0000}EROARE: {FFFFFF}Nu ai acces la aceasta comanda.");
    else if(
sscanf(params"ui"pIDvalue)) return SendClientMessage(playeridCOLOR_GOLD"Foloseste: /setmoney [id] [suma]");
    else if(
pID == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_TOM"Jucatorul nu este conectat.");
    else
    {
        new 
string[100], target[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
        
GetPlayerName(playeridpNamesizeof(pName));
        
GetPlayerName(pIDtargetsizeof(target));
        
format(stringsizeof(string), "I-ai setat lui "COL_YELLOW"%s "COL_GY"suma de "COL_GREEN"%i$."target,value);
        
SendClientMessage(playeridCOLOR_GYELLOWstring);
        
format(stringsizeof(string), "Ai primit suma de "COL_GREEN"%i$ "COL_GY"de la "COL_YELLOW"%s."valuepName);
        
SendClientMessage(pIDCOLOR_GYELLOWstring);
        
PlayerInfo[pID][pCash] = value;
        
SetPlayerMoney(pIDPlayerInfo[pID][pCash]);
    }
    return 
1;

What i have to change to money look like 200000$ = 200.000$ ?
Reply


Messages In This Thread
money with "." - by GabiXx - 02.12.2016, 20:01
Re: money with "." - by oMa37 - 02.12.2016, 20:07
Re: money with "." - by GabiXx - 02.12.2016, 20:18
Re: money with "." - by Dayrion - 02.12.2016, 20:49
Re: money with "." - by SickAttack - 02.12.2016, 20:53
Re: money with "." - by GabiXx - 02.12.2016, 20:54
Re: money with "." - by SickAttack - 02.12.2016, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)