Need some Help here :(
#4

You can try this version( for me better ) :

pawn Код:
new
    Float:BarValue[ MAX_PLAYERS ];

stock SetBarValue( playerid, Float:ammount )
{
    BarValue[ playerid ] += ammount;
    SetProgressBarValue( barID, BarValue[ playerid ] );
    return UpdateProgressBar( barID, playerid );
}
USE:

pawn Код:
SetBarValue( playerid, -5.0 );
But you need edit something in stock! ( I mean barID to ur barID )

Or better

pawn Код:
stock SetBarValue( playerid, barID, Float:ammount )
{
    BarValue[ playerid ] += ammount;
    SetProgressBarValue( barID, BarValue[ playerid ] );
    return UpdateProgressBar( barID, playerid );
}
Reply


Messages In This Thread
Need some Help here :( - by Soumi - 13.08.2011, 21:56
Re: Need some Help here :( - by Raimis_R - 13.08.2011, 22:35
Re: Need some Help here :( - by Soumi - 13.08.2011, 22:38
Re: Need some Help here :( - by Raimis_R - 13.08.2011, 22:45
Re: Need some Help here :( - by Soumi - 13.08.2011, 23:28

Forum Jump:


Users browsing this thread: 2 Guest(s)