Help in a Format
#1

G'day everyone. Let's get to the problem, shall we?
I was scripting a Birth Date system but went into a problem.
How to use the '19/09/1990' (DAY/MONTH/YEAR) in a Dialog?
I want to use it in a Single Dialog. Please help.
Reply
#2

Example:
pawn Код:
new string[144], year = 2014, month = 6, day = 16;
format(string, sizeof(string), "%d/%d/%d", day, month, year);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Birthdays:", string, "Close", "");
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
I would use "%02d/%02d/%04d", since he said "09" and just using "%d" would produce just "9" for September.
This ^^
Repped, even though you don't need it XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)