Help!
#4

Try this:
pawn Код:
case DIALOG_BANKCREATEPASS:
        {
            if(response) {
                new Rstr[128], name[64], buf[129];
                GetPVarString(playerid, "Username", name, sizeof(name));
             //   format(Rstr, sizeof(Rstr), BankFile, name);
                WP_Hash(buf, sizeof(buf), inputtext);
             //   dini_Set(Rstr, "Password", buf);
                dini_Set(name, "Password", buf);  // I've added this line
                SendClientMessage(playerid, COLOR_GREEN, "You have successfully registered your bank account");
                BankSettings[playerid][BANK_REGISTERED] = 1;
                return ShowPlayerDialog(playerid, DIALOG_BANKSETTINGS, DIALOG_STYLE_LIST, "{FFFF00}Account Settings", "Balance\nWithdraw\nDeposit\nTransfer\nChange Account Password\nDelete Account", "Ok", "Back");
            }
        }
Reply


Messages In This Thread
Help! - by Konstantinos - 02.01.2012, 20:40
Re: Help! - by Norck - 02.01.2012, 21:07
Re: Help! - by Konstantinos - 03.01.2012, 08:50
Re: Help! - by Norck - 03.01.2012, 09:04
Re: Help! - by Konstantinos - 03.01.2012, 11:13

Forum Jump:


Users browsing this thread: 2 Guest(s)