03.12.2011, 01:48
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-
Which is correct, and works correctly.
Displaying it- (It displays as a square..)
Writing it-
It saves in the file as-
Quote:
|
LastLoggedIn = 12/2/2011 |
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", "");
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);

