Progress bar help
#1

How to create progress bar , if(PlayerInfo[playerid][kondisi] == 40) progress bar change to red color ?

pawn Код:
if(kondisi[playerid] == INVALID_BAR_ID)
    {
        kondisi[playerid] = CreateProgressBar(45.00, 324.00, 86.50, 1.50, 866792447, 100.0); // green color default if full
    }
Reply
#2

Bump
Reply
#3

Simply change it's color when your array value becomes 40. If you're using Toribio's progress bar include, use SetProgressBarColor function.
pawn Код:
if(GetProgressBarValue(my_bar) == 40) SetProgressBarColor(my_bar, 0xFF0000FF);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)