17.06.2016, 11:24
(
Последний раз редактировалось Ugaustin; 17.06.2016 в 13:07.
)
hi can someone help me, I want too see, last login so when the player logins to appear in dialog ... but dosent work..first time nothing appears, and second time it appears, and if server restarts nothing appears and after login it appears, I just want to see LastLogin in dialog at OnPlayerRequestClass
OnPlayerLogin:
OnPlayerLogin:
PHP код:
new year, month, day, hour, minute, second;
getdate(year, month, day);
gettime(hour, minute, second);
format(PlayerInfo[playerid][pLastSeen], 20, "%02d.%02d.%d %02d:%02d", day, month, year, hour, minute);
new query[256];
format(query, sizeof(query), "UPDATE users SET LastLogged = '%s' WHERE Name = '%s'", PlayerInfo[playerid][pLastSeen], GetName(playerid));
mysql_tquery(mysql_db, query);