ban dialog - 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: ban dialog (
/showthread.php?tid=576909)
ban dialog -
suni - 07.06.2015
i try this so many times and still failed putting this in a dialog when banned.
Time and date: %s
Reason of the ban: %s
Name of admin that banned you: %s
i need help with ban dialog
Re: ban dialog -
DarkLored - 07.06.2015
Do you store your data of the ban data, etc...
if you want any help we need to see your code so we could help.
Re: ban dialog -
Abagail - 07.06.2015
Show the code you are attempting to use. However, if you are sending the messages with %s without formatting ofcourse it won't work.
Re: ban dialog -
suni - 07.06.2015
i dont really know how to add the date and time
Quote:
ShowPlayerDialog(id, 1, DIALOG_STYLE_MSGBOX, "You Have Been Banned...", "You have been banned.\nTime and date: %s\nReason of the ban: %s\nName of admin that banned you: %s", "close", reason, GetName(playerid), playerid);
|
Re: ban dialog -
DarkLored - 07.06.2015
pawn Код:
new string[128];
format(string,sizeof(string), "Time and Date %s\nReason of the ban %s\nName of the admin who banned you", timebanned, reason, GetName(playerid), playerid);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "You have been banned", string, "Close", "");
this is how it should look like for the time he was banned you need to put the code that stores it in.
Re: ban dialog -
suni - 08.06.2015
i mean the ban date. eg. 10/5/2015.
Re: ban dialog -
suni - 11.06.2015
replace the ban time with the ban date like this e.g 10/5/2015
Re: ban dialog -
Huba - 11.06.2015
Код:
new y, m, d;
getdate(y, m, d);
new string[180];
format(string,sizeof(string), "Time and Date %02d/%02d/%02d\nReason of the ban %s\nName of the admin who banned you: %s", y, m, d, reason, GetName(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "You have been banned", string, "Close", "");