01.07.2011, 13:31
hmm can anyone help
I have tried for 2 hours to get this right but I don't get it.
I use the progress bar from the include from here.
https://sampforum.blast.hk/showthread.php?tid=113443
But I can not turn it into a experience system wich someone have at a screen.
How can I make that something like this doesn't work:
and @ my onplayerlogin I have:
After that I used only create and new:bar at onpalyerconnect with the same codes.
With that I putted in the command /setexp: updateprogressbar.
But also that doesn't work.
How to do this.
It would be great if someone could help me cause I realy want this to work
I have tried for 2 hours to get this right but I don't get it.
I use the progress bar from the include from here.
https://sampforum.blast.hk/showthread.php?tid=113443
But I can not turn it into a experience system wich someone have at a screen.
How can I make that something like this doesn't work:
pawn Код:
new Bar:vhealth[MAX_PLAYERS];
forward ProgressBar();
public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{
for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
{
SetProgressBarValue(vhealth[playerid], PlayerInfo[playerid][pExp]);
UpdateProgressBar(vhealth[playerid], playerid);
}
}
pawn Код:
vhealth[playerid] = CreateProgressBar(548.5, 36.0, _, _, 0x00FF00FF, PlayerInfo[playerid][pAge]);
ShowProgressBarForPlayer(playerid, vhealth[playerid]);
With that I putted in the command /setexp: updateprogressbar.
But also that doesn't work.
How to do this.
It would be great if someone could help me cause I realy want this to work