01.07.2014, 05:25
pawn Код:
new Query[128],
Timestamp,
Day,
Month,
Year,
Hour,
Minute,
Second;
Timestamp = gettime(); // note this line
TimestampToDate(Timestamp, Year, Month, Day, Hour, Minute, Second, GMT_H, GMT_M);
mysql_format(szCurrent, Query, sizeof(Query), "UPDATE `accounts` SET `LastOnline` = '%i-%i-%i at %i:%i:%i' WHERE `Username` = '%e' LIMIT 1", Day, Month, Year, Hour, Minute, Second, Name[playerid]);
mysql_tquery(szCurrent, Query, "");