Posts: 31
Threads: 6
Joined: Sep 2009
Reputation:
0
can someone please help me out and give me an example of a progress bar updating every second for 5 seconds, then destroys it self?
thanks
Posts: 31
Threads: 6
Joined: Sep 2009
Reputation:
0
no... create it when a player enters a checkpoint, waits 5 seconds while it updates until it reaches 0 then destroy it..
wouldn't it look something like this?
public onplayerentercheckpoint
{
{
ShowProgressBarForPlayer(barid, playerid);
SetProgressBarMaxValue(barid, 700);
UpdateProgessBar(barid, playerid=INVALID_PLAYER_ID);
SetTimerEx(SetTimerEx("Progbar", 5000, false, "i", playerid);
HideProgressBarForPlayer(barid, playerid);
return 1;
}
return 0;
}
just a quick example, but yes?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
That makes no sense did you not listen? You only need to create it once and it will automatically destroy when a player quits you only need to show/hide. Create/destroy each time is counter intuitive and makes absolutely no sense at all.
@Edit - Check the pastebin link your using the wrong include.