LastLogged
#4

Put that code in public OnGameModeExit().

Use a loop:
Код HTML:
foreach(Player, i)
{
   new year, month, day, hour, minute, second; 
                    getdate(year, month, day); 
                    gettime(hour, minute, second); 
                    format(PlayerInfo[i][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[i][pLastSeen], GetName(i)); 
                    mysql_tquery(mysql_db, query);  
}
Reply


Messages In This Thread
LastLogged - by Ugaustin - 17.06.2016, 11:24
Re: LastLogged - by StaticYey - 17.06.2016, 12:07
Re: LastLogged - by Ugaustin - 17.06.2016, 13:01
Re: LastLogged - by Nin9r - 17.06.2016, 13:14
Re: LastLogged - by Ugaustin - 17.06.2016, 14:49
Re: LastLogged - by Ugaustin - 17.06.2016, 14:53
Re: LastLogged - by Stinged - 17.06.2016, 15:02
Re: LastLogged - by Ugaustin - 17.06.2016, 15:56
Re: LastLogged - by Stinged - 17.06.2016, 16:01
Re: LastLogged - by Ugaustin - 17.06.2016, 16:22

Forum Jump:


Users browsing this thread: 3 Guest(s)