GetPlayerFps returns 0
#5

I edited in this way:

pawn Код:
stock GetPlayerFps(playerid)
{
    SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
    if(GetPVarInt(playerid, "DrunkL") < 5000) SetPlayerDrunkLevel(playerid, 1000);
    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 1;
}
But now it returns me just: FPS 1
Reply


Messages In This Thread
GetPlayerFps returns 0 - by Face9000 - 18.10.2012, 10:25
Re: GetPlayerFps returns 0 - by Roel - 18.10.2012, 10:31
Re: GetPlayerFps returns 0 - by Face9000 - 18.10.2012, 10:39
Re: GetPlayerFps returns 0 - by Roel - 18.10.2012, 10:42
Re: GetPlayerFps returns 0 - by Face9000 - 19.10.2012, 13:10
Re: GetPlayerFps returns 0 - by Danyal - 19.10.2012, 13:14
Re: GetPlayerFps returns 0 - by Face9000 - 19.10.2012, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)