hours and minutes wont work
#10

Why are you using a timer? Just save how many milliseconds that player has been on the server.
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayerData[playerid][Time] = GetTickCount();
}
public OnPlayerDisconnect(playerid,reason)
{
    dini_IntSet(file, "Time", dini_Int(file, "Time")+(GetTickCount()-PlayerData[playerid][Time]));
}
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)
Reply


Messages In This Thread
hours and minutes wont work - by tanush - 08.04.2011, 01:04
Re: hours and minutes wont work - by sciman001 - 08.04.2011, 01:07
Re: hours and minutes wont work - by -Rebel Son- - 08.04.2011, 01:10
Re: hours and minutes wont work - by sciman001 - 08.04.2011, 01:13
Re: hours and minutes wont work - by tanush - 08.04.2011, 01:18
Re: hours and minutes wont work - by -Rebel Son- - 08.04.2011, 01:35
Re: hours and minutes wont work - by tanush - 08.04.2011, 19:49
Re: hours and minutes wont work - by tanush - 11.04.2011, 21:43
Re: hours and minutes wont work - by Fj0rtizFredde - 11.04.2011, 21:47
Re: hours and minutes wont work - by Joe Staff - 11.04.2011, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)