13.08.2011, 22:45
You can try this version( for me better ) :
USE:
But you need edit something in stock! ( I mean barID to ur barID )
Or better
pawn Код:
new
Float:BarValue[ MAX_PLAYERS ];
stock SetBarValue( playerid, Float:ammount )
{
BarValue[ playerid ] += ammount;
SetProgressBarValue( barID, BarValue[ playerid ] );
return UpdateProgressBar( barID, playerid );
}
pawn Код:
SetBarValue( playerid, -5.0 );
Or better
pawn Код:
stock SetBarValue( playerid, barID, Float:ammount )
{
BarValue[ playerid ] += ammount;
SetProgressBarValue( barID, BarValue[ playerid ] );
return UpdateProgressBar( barID, playerid );
}