Jump to content

Recommended Posts

Posted

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 ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.