28.09.2014, 08:19
use this
on the enum
[code]LastLogin[50]/CODE]
Show in msg:
load:
in mysql structure:
Mysql R38
Im using this script working created by me
on the enum
[code]LastLogin[50]/CODE]
Код:
Save: new texts[128]; new y,m,d; new hr,mins,sec; getdate(y,m,d); gettime(hr,mins,sec); format(texts, sizeof(texts), "%d-%d-%d %d-%d-%d", y, m, d, hr, mins, sec); mysql_format(Mysql_users, query, sizeof(query), "UPDATE `you_user_table` SET LastLogin = '%e' WHERE Fullname= '%e'",texts, GetPlayersName(playerid)); mysql_tquery(Mysql_users, query, "", "");
Код:
new msg[128]; format(msg, sizeof(msg), "%s", PlayerData[playerid][LastLogin]); SendClientMessage(playerid, -1, msg);
Код:
cache_get_field_content(0, "LastLogin", PlayerData[playerid][LastLogin], Mysql_users, 126);
Код:
Name: LastLogin Type: datetime
Im using this script working created by me