Help with this TextDraw.
#3

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
Show the function that's getting the players FPS - and also... Don't use OnPlayerUpdate for anything really, unless absolutely necessary.
Код:
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;
}
What do i use instead of onplayerupdate?
Reply


Messages In This Thread
Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 20:16
Re: Help with this TextDraw. - by Mike Garber - 16.04.2011, 20:22
Re: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 20:24
AW: Help with this TextDraw. - by Nero_3D - 16.04.2011, 22:14
Re: Help with this TextDraw. - by Stigg - 16.04.2011, 22:19
Re: AW: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 22:26
AW: Re: AW: Help with this TextDraw. - by Nero_3D - 16.04.2011, 23:53
Re: AW: Re: AW: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 23:58
AW: Re: AW: Re: AW: Help with this TextDraw. - by Nero_3D - 17.04.2011, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)