Y_INI - Last logged in?
#4

How would I go about displaying it? I have the variables saving and loading correctly, I just don't know how to display it on a string, as it's not working correctly.

It saves in the file as-
Quote:

LastLoggedIn = 12/2/2011

Which is correct, and works correctly.

Displaying it- (It displays as a square..)
pawn Код:
format(string, sizeof(string), "You last logged in on: %s!\nYou currently have %d points to spend!", UserInfo[playerid][LastLoggedIn], UserInfo[playerid][Points]);
                    ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX, ""COL_WHITE"You have been logged in!", string, "Play", "");
Writing it-
pawn Код:
new year, month, day;
                getdate(year, month, day);
new string[128];
                format(string, sizeof(string), "%d/%d/%d", month, day, year);
                INI_WriteString(File, "LastLoggedIn", string);
Reply


Messages In This Thread
Y_INI - Last logged in? - by Scarred - 02.12.2011, 17:50
Re: Y_INI - Last logged in? - by [MG]Dimi - 02.12.2011, 17:51
Re: Y_INI - Last logged in? - by Scarred - 02.12.2011, 18:10
Re: Y_INI - Last logged in? - by Scarred - 03.12.2011, 01:48
Re: Y_INI - Last logged in? - by antonio112 - 03.12.2011, 03:38
Re: Y_INI - Last logged in? - by Scarred - 03.12.2011, 03:59
Re: Y_INI - Last logged in? - by fordawinzz - 03.12.2011, 07:59
Re: Y_INI - Last logged in? - by antonio112 - 03.12.2011, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)