Progress Bar problem
#1

Hi guys today i add new progress bar and its showed on the server but when i /sethp 0 50 the health still full i try 0 health still full 100.
Im begginer on progress bar
Please guys help me!
+ Rep

pawn Code:
new Bar:health = CreateProgressBar(542.00, 379.00, 55.50, 10.20, -16776961, 100.0);
SetProgressBarValue(health, 50.0);
ShowProgressBarForAll(health);
Reply
#2

Anyone help me?
PLS!
Reply
#3

I'm wondering, why do you even need it for player's health when GTA itself has it.
Reply
#4

I dont like the old one
Can you help me or no?
Reply
#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
#6

Not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)