11.04.2011, 22:29
Why are you using a timer? Just save how many milliseconds that player has been on the server.
Then dini_Int(file, "Time") will return how many milliseconds the player has been on the server (use a time converter to change it to hours/minutes)
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerData[playerid][Time] = GetTickCount();
}
public OnPlayerDisconnect(playerid,reason)
{
dini_IntSet(file, "Time", dini_Int(file, "Time")+(GetTickCount()-PlayerData[playerid][Time]));
}