The_RobyRo Posted September 7, 2018 Posted September 7, 2018 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 ?
The_RobyRo Posted September 7, 2018 Author Posted September 7, 2018 Am rezolvat problema. Nu pusesem ceva.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now