01.07.2011, 14:28
PlayerInfo[playerid][pExp] needs to be a float point.
EDIT: Try this dunno if it would work
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);
}
}