02.01.2017, 23:35
I'm trying to save registration date of the player on the registration, i made this:
But got errors.
Also another question, do i need to save the UserInfo[playerid][p_regdate] on player disconnect and load it on login or is not necessary? Thanks.
Код:
new date[3]; getdate(date[2], date[1], date[0]); new month[15]; switch (date[1]) { case 1: month = "January"; case 2: month = "Feburary"; case 3: month = "March"; case 4: month = "April"; case 5: month = "May"; case 6: month = "June"; case 7: month = "July"; case 8: month = "August"; case 9: month = "September"; case 10: month = "October"; case 11: month = "November"; case 12: month = "December"; } new register_on[25]; format(register_on, sizeof(register_on), "%02d %s, %d", date[0], month, date[2]); SQL::WriteString(handle, "p_regdate", UserInfo[playerid][p_regdate], date[0], month, date[2]);
Also another question, do i need to save the UserInfo[playerid][p_regdate] on player disconnect and load it on login or is not necessary? Thanks.