Progress Bar problem
#5

Well, you probably didn't update the prograssbar's value with the player's health.

A timer would be needed to keep updating the bar value depending on player's health.

Example;
Code:
new Float: health;

GetPlayerHealth(playerid, health);
SetProgressBarValue(barid, health);
And btw, try not to create a bar id with "health" name, you may create another variable calling it "health" in the future. It will give you an error.
Reply


Messages In This Thread
Progress Bar problem - by DavidGravelli - 09.07.2016, 14:40
Re: Progress Bar problem - by DavidGravelli - 09.07.2016, 14:46
Re: Progress Bar problem - by Sjn - 09.07.2016, 14:56
Re: Progress Bar problem - by DavidGravelli - 09.07.2016, 14:57
Re: Progress Bar problem - by Sjn - 09.07.2016, 15:03
Re: Progress Bar problem - by DavidGravelli - 09.07.2016, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)