Jump to content

Question

4 answers to this question

Recommended Posts

Posted

Nu prea cred ca am inteles ce vrei dar cred ca te referi la un td cu bani din bank nu?

Pai fa un td nou sub forma celui actual, dati lvl 1 wanted si mutal exact sub el si pe urma iei cordonatele:

ex:

[pawn]

banktd = TextDrawCreate(x, y, "$0000000000");

[/pawn]

Si le adaugi la cel care il folosesti.

EDIT: nu stiu sigur daca sunt chear bune 545 , 137

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

Nu prea cred ca am inteles ce vrei dar cred ca te referi la un td cu bani din bank nu?

Pai fa un td nou sub forma celui actual, dati lvl 1 wanted si mutal exact sub el si pe urma iei cordonatele:

ex:

[pawn]

banktd = TextDrawCreate(x, y, "$0000000000");

[/pawn]

Si le adaugi la cel care il folosesti.

EDIT: nu stiu sigur daca sunt chear bune 545 , 137

pai dar nu este de aici?

stock DecimalPointBank(targetid)
{
    new str[30];
    new account = PlayerInfo[targetid][pAccount];
    if(account >= 0)
    {
        format(str, sizeof(str), "$%d", account);
        if(1000 <= account < 10000) strins(str, ".", 2, sizeof(str));
        else if(10000 <= account < 100000) strins(str, ".", 3, sizeof(str));
        else if(100000 <= account < 1000000) strins(str, ".", 4, sizeof(str));
        else if(1000000 <= account < 10000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); }
        else if(10000000 <= account < 100000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); }
        else if(100000000 <= account < 1000000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); }
        else if(account >= 1000000000) { strins(str, ".", 2, sizeof(str)); strins(str, ".", 6, sizeof(str)); strins(str, ".", 10, sizeof(str)); }
    }
    else
    {
        format(str, sizeof(str), "-$%d", account-(account*2));
        if(-1000 >= account > -10000) strins(str, ".", 3, sizeof(str));
        else if(-10000 >= account > -100000) strins(str, ".", 4, sizeof(str));
        else if(-100000 >= account > -1000000) strins(str, ".", 5, sizeof(str));
        else if(-1000000 >= account > -10000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); }
        else if(-10000000 >= account > -100000000) { strins(str, ".", 4, sizeof(str)); strins(str, ".", 8, sizeof(str)); }
        else if(-100000000 >= account > -1000000000) { strins(str, ".", 5, sizeof(str)); strins(str, ".", 9, sizeof(str)); }
        else if(account <= -1000000000) { strins(str, ".", 3, sizeof(str)); strins(str, ".", 7, sizeof(str)); strins(str, ".", 11, sizeof(str));}
    }
    return str;
    }

Posted

acea e o functie care pune "." dupa 3 numere.

Cea ce vrei tu se face cu un TD

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

acea e o functie care pune "." dupa 3 numere.

Cea ce vrei tu se face cu un TD

poi la asta ma gandeam si eu...dar nu o gasesc X(

AM GASIT...dar apropo de TD...pot insera o imagine? sau ceva..nush o infigna de exemplu

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.