18.11.2014, 17:52
Hello ,
My progressbar don't move
But when i remplace health with cGas ( is my condition for fuel ) it's work :/
Thks
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); } } }
Thks