Help with this TextDraw.
#7

Quote:
Originally Posted by TheYoungCapone
Посмотреть сообщение
I tried this and it shows the FPS 2000 and it keeps changing to 0 every second like before. Do I have to use something else instead of OnPlayerUpdate?
Yeah I forgot something important

pawn Код:
stock GetPlayerFPS(playerid)
{ // forum.sa-mp.com/showpost.php?p=1167812&postcount=7
    new
        drunk = GetPlayerDrunkLevel(playerid);
    if(GetPVarInt(playerid, "DrunkLevel") != drunk) {
        SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "DrunkLevel") - drunk));
    }
    if(drunk < 100) {
        SetPlayerDrunkLevel(playerid, 2000);
        SetPVarInt(playerid, "DrunkLevel", 2000);
    } else {
        SetPVarInt(playerid, "DrunkLevel", drunk);
    }
    return GetPVarInt(playerid, "FPS");
}
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)