SA-MP Forums Archive
DateTime Login - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DateTime Login (/showthread.php?tid=650783)



DateTime Login - EvgeniyHostel1992 - 06.03.2018

please tell us how to save the player's time of arrival

enum pInfo
{
pDateLogin,
pDateOut
}
new pl[MAX_PLAYERS][pInfo];

in the database created the cells of the format : DATETIME


Re: DateTime Login - EvgeniyHostel1992 - 06.03.2018

PHP код:
format(queryipsizeof(queryip), "UPDATE `accounts` SET `Ip` = '%s', `DateLogin` = NOW() WHERE `ID` = '%d'",pl[playerid][pIp],pl[playerid][pID]);
      
mysql_function_query(mysql_connect_IDqueryipfalse""""); 
closed