09.05.2017, 18:46
So, I have this query
it shows me NULL when the player spawn, I'm not sure what is wrong with it, any ideas ?
PHP код:
mysql_format(sqlConnection, query, sizeof(query), "SELECT *, DATE_FORMAT(lastlogin, '%%e/%%c/%%Y') AS date_time FROM players WHERE username = '%e' AND password = '%e'", GetPlayerNameEx(playerid), password);
mysql_tquery(sqlConnection, query, "OnQueryFinished", "ii", THREAD_ACCOUNT_LOGIN, playerid
PHP код:
new date[64];
cache_get_field_content(0, "date_time", date, sqlConnection, 64);
PHP код:
SendClientMessageEx(playerid, -1, "Your last login was on the %s", date);