Experience bar
#2

PlayerInfo[playerid][pExp] needs to be a float point.

EDIT: Try this dunno if it would work
pawn Код:
new Bar:vhealth[MAX_PLAYERS];
new Float:ExpBar;
forward ProgressBar();
public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
    {
        ExpBar = PlayerInfo[playerid][pExp];
        SetProgressBarValue(vhealth[playerid], ExpBar);
        UpdateProgressBar(vhealth[playerid], playerid);
    }
}
Reply


Messages In This Thread
Experience bar - by jorambo - 01.07.2011, 13:31
Re: Experience bar - by The Woody - 01.07.2011, 14:28
Re: Experience bar - by jorambo - 01.07.2011, 16:54
Re: Experience bar - by jorambo - 03.07.2011, 09:37
Re: Experience bar - by The Woody - 03.07.2011, 23:21
Re: Experience bar - by Unte99 - 17.07.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)