GetPlayerFps(playerid, variable);
#12

Quote:
Originally Posted by sciman001
Посмотреть сообщение
well... ok.. heres my code now:

pawn Код:
stock GetPlayerFps(playerid)
{
    SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
    if(GetPVarInt(playerid, "DrunkL") < 100) SetPlayerDrunkLevel(playerid, 2000);
        else{
            if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
            {
                SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
                SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
                if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
                {
                    return GetPVarInt(playerid, "FPS") - 1;
                }
            }
        }
    return 0;
}
It "workd..." it sometimes gets the fps... and sometimes returns 0. what should i do
I think this is the only way to get the players FPS, don't exept it to work to well on a server with lots of players or a big script...
Reply


Messages In This Thread
GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 16:27
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 16:44
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 17:15
Re: GetPlayerFps(playerid, variable); - by WillyP - 02.04.2011, 17:16
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 17:17
Re: GetPlayerFps(playerid, variable); - by -Rebel Son- - 02.04.2011, 17:18
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 17:20
Re: GetPlayerFps(playerid, variable); - by Mean - 02.04.2011, 17:35
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 17:37
Re: GetPlayerFps(playerid, variable); - by admantis - 02.04.2011, 17:46
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 18:02
Re: GetPlayerFps(playerid, variable); - by linuxthefish - 02.04.2011, 18:12
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 18:21
Re: GetPlayerFps(playerid, variable); - by sciman001 - 02.04.2011, 22:03

Forum Jump:


Users browsing this thread: 2 Guest(s)