29.06.2014, 23:01
Hola. para actualizar una progressbar debes utilizar UpdateProgressBar. ejemplo:
Te recomiendo visitar el tema oficial (https://sampforum.blast.hk/showthread.php?tid=113443).
pawn Код:
public ProgressBar()
{
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
new vehicleid;
if((vehicleid = GetPlayerVehicleID(playerid)) && vhealth[playerid] != INVALID_BAR_ID)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
SetProgressBarValue(vhealth[playerid], health);
UpdateProgressBar(vhealth[playerid], playerid);
}
}
}