SA-MP Forums Archive
Progressbar don't move - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Progressbar don't move (/showthread.php?tid=546884)



Progressbar don't move - StreetRP - 18.11.2014

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


Re: Progressbar don't move - Pottus - 18.11.2014

First things first use the proper progress bar include.

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