03.01.2012, 09:04
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");
}
}