Help with this TextDraw.
#6

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
The guy who wrote that rly likes pvar

pawn Код:
stock GetPlayerFPS(playerid)
{
    new
        drunk = GetPlayerDrunkLevel(playerid),
        fps = (GetPVarInt(playerid, "DrunkLevel") - drunk);
    if(drunk < 100) {
        SetPlayerDrunkLevel(playerid, 2000);
        SetPVarInt(playerid, "DrunkLevel", 2000);
    } else {
        SetPVarInt(playerid, "DrunkLevel", drunk);
    }
    return fps;
}
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?
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: 3 Guest(s)