02.01.2012, 20:40
(
Последний раз редактировалось Konstantinos; 09.01.2012 в 13:33.
)
Fixed!
new uname[64];
GetPVarString(playerid,"Username",uname,sizeof(uname)); // now `uname` contains PVar `Username`
format(Rstr, sizeof(Rstr), BankFile, GetPVarString(playerid, "Username"));
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");
}
}
Try this:
pawn Код:
|