19.01.2014, 10:09
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)
Thanks in advance.
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]);
}
}