ondialogresponse - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ondialogresponse (
/showthread.php?tid=648758)
ondialogresponse -
BulletRaja - 28.01.2018
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
Код:
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.");
help here pls
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");
}
Re: ondialogresponse -
Viggo - 28.01.2018
Post the AddDirFile function.
Re: ondialogresponse -
BulletRaja - 28.01.2018
Quote:
Originally Posted by Viggo
Post the AddDirFile function.
|
No problem their its fixed now