View Single Post
Old 09.03.2006, 19:27   #4
Megatronpt
Архивный участник
 
Join Date: Jan 2006
Posts: 584
Default

Quote:
Originally Posted by FidoW
..use similar script to get players online... (the best is in lin2db.world_user , not login>logout because when server go down... all online players show online forever...)...
Well.. add a script like this:

[php:1:6dd58c7fef]<?php
require('config.php');

$query ="UPDATE user_data SET logout = getdate()";
$result = mssql_query($query);

if($result)
{
echoLn("Logout Time Fixed.");
}
?>[/php:1:6dd58c7fef]
Megatronpt is offline