ban dialog
#1

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
Reply
#2

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.
Reply
#3

Show the code you are attempting to use. However, if you are sending the messages with %s without formatting ofcourse it won't work.
Reply
#4

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);

Reply
#5

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.
Reply
#6

i mean the ban date. eg. 10/5/2015.
Reply
#7

replace the ban time with the ban date like this e.g 10/5/2015
Reply
#8

Код:
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", "");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)