Jump to content

Clan Deposit


Recommended Posts

Salut! Am si eu o problema, am incercat sa fac un update la clan-uri prin adaugarea optiunii de a depozita bani in seif-ul clan-ului, dar nu mi se salveaza banii depozitati in baza de date. Am adaugat Deposit Money in comanda /clan. Lucrez pe gamemode-ul burned original

Deposit Money: 

        case DIALOG_CDEPOSIT: {
            if(!response) return 1;
            if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CDEPOSIT, DIALOG_STYLE_INPUT, "Deposit Money", "Introdu suma pe care doresti sa o depozitezi in seiful clanului.", "Okay", "Cancel");
            new val = strval(inputtext);
            GivePlayerCash(playerid, -val);
            new string2[64];
            format(string2, sizeof(string2), "Ai depozitat $%d in seif-ul clanului.", val);
            SCM(playerid, COLOR_LGREEN, string2);
            new clanid = PlayerInfo[playerid][pClan];
            ClanInfo[clanid][clBank] += val;

Mai adaugasem si in include-ul systems:

new clanid = PlayerInfo[playerid][pClan];

case clBankx: format(var, sizeof(var), "UPDATE `clans` SET `Bank`='%d' WHERE `ID`='%d'",ClanInfo[clanid][clBank], PlayerInfo[playerid][pClan]);            


Ma poate ajuta cineva ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.