28.01.2018, 11:21
guys i created an bank system my bank register is working perfectly its making the file in the files too but when i do send money in my dialogresponse the player always gets
this plyer should register bank acc
help here pls
by this code i registere the acc
this plyer should register bank acc
Код:
format(string, 50, "B_%s", inputtext); new name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME], string2[50], stringdata[256]; GetPlayerName(playerid, name, sizeof(name)); new id = GetPVarInt(playerid, "SendCash"); if(!dini_Exists(AddDirFile(dir_bankfiles, string))) return SendClientMessage(playerid, COLOR_RED, "Error: This player need to register an bank account.");
by this code i registere the acc
Код:
new str[1080], pname1[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname1, MAX_PLAYER_NAME); format(str, 50, "B_%s", pname1); if(!dini_Exists(AddDirFile(dir_bankfiles,str))) { ShowPlayerDialog2(playerid, DIALOG_BANKREG, DIALOG_STYLE_MSGBOX, "San Andreas State Bank", "You dont have bank account.\n\nWant to register bank account?", "Yes", "No"); } else { ShowPlayerDialog2(playerid, DIALOG_BANK, DIALOG_STYLE_LIST, "San Andreas State Bank", "Deposit\nWithdraw\nBalance\nSend Money\nCollect Interest\nCheck State", "Select", "Close"); }