Progressbar don't move
#1

Hello ,
My progressbar don't move
Код:
public ProgressBaretatvoiture() 
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
new vehicle = GetPlayerVehicleID(playerid);
new vehicleid;
if((vehicleid = GetPlayerVehicleID(playerid)) && barvhealth[playerid] != INVALID_BAR_ID)
{
	new Float:health;
	GetVehicleHealth(vehicleid, health);
	SetProgressBarValue(barvhealth[playerid], health);
	UpdateProgressBar(barvhealth[playerid], playerid);
}
}
}
But when i remplace health with cGas ( is my condition for fuel ) it's work :/

Thks
Reply
#2

First things first use the proper progress bar include.

https://sampforum.blast.hk/showthread.php?tid=537468
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)