Progress Bar problem
#1

Hello,

I've a problem with my progress bar.

The first one doesn't work, any value have bar at each update it drops to 0, the other 2 are working properly.

(They are called every minutes with a timer)

pawn Code:
public DescendreFaim()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetProgressBarValue(hungry[i], GetProgressBarValue(hungry[i])-5.00);
        UpdateProgressBar(hungry[i]);
        PlayerInfo[i][pFaim] = GetProgressBarValue(hungry[i]);
    }
}

public DescendreSoif()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetProgressBarValue(bladder[i], GetProgressBarValue(bladder[i])-5.00);
        UpdateProgressBar(bladder[i]);
        PlayerInfo[i][pSoif] = GetProgressBarValue(bladder[i]);
    }
}

public DescendreEnergie()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetProgressBarValue(energy[i], GetProgressBarValue(energy[i])-5.00);
        UpdateProgressBar(energy[i]);
        PlayerInfo[i][pEnergie] = GetProgressBarValue(energy[i]);
    }
}
Thanks in advance.
Reply


Messages In This Thread
Progress Bar problem - by PakPak - 19.01.2014, 10:09
Re: Progress Bar problem - by Hansrutger - 19.01.2014, 12:03
Re : Progress Bar problem - by PakPak - 19.01.2014, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)