So I've searched forum and found a method that gets users playtime. But I'm doubting is it correct, because I would like to save time in seconds.
here is method:
PHP Code:
new iPlayedTime[33]; // creating new array
iPlayedTime[id] = SQL_ReadResult(Query, 8); // getting the last spent time on server from mysql.
get_user_playtime( id )
{
return iPlayedTime[id] + get_user_time(id)
} // so thats the method.
Does this return me users spent time on server in seconds ?
One guy connected to my server for few seconds, but I found in my phpmyadmin that he was in server for 750seconds.