[HELP]My Hunger , Energy is bug -_- -
Fachrul48 - 23.09.2014
ok , so my hunger and energy textdraw is bug , i dont know why , when the bar is full it's not bugging . when the bar is half full , it's start bugging , (sorry bad english , i'm indonesian) here's the picture
if you want the code , tell me in the comments
Re: [HELP]My Hunger , Energy is bug -_- -
KayJ - 23.09.2014
code please?
Re: [HELP]My Hunger , Energy is bug -_- -
Fachrul48 - 23.09.2014
textdraw code ?
Re: [HELP]My Hunger , Energy is bug -_- -
IceCube! - 23.09.2014
The code which updates the bars with the percentage it should be at?
In all honesty you should have more common sense than this? You even said "if we need code", last time I checked I wasn't physic.
Re: [HELP]My Hunger , Energy is bug -_- -
Fachrul48 - 23.09.2014
i'm noob at scripting
maybe this
Timer:PengurangData[1000]()
{
foreach(Player, i)
{
if(gPlayerLogged{i})
{
SetProgressBarValue(stabar[i], PlayerInfo[i][pEnergi]);
SetProgressBarValue(bladbar[i], PlayerInfo[i][pBladder]);
SetProgressBarValue(hungbar[i], PlayerInfo[i][pHunger]);
UpdateProgressBar(hungbar[i], i);
UpdateProgressBar(bladbar[i], i);
UpdateProgressBar(stabar[i], i);
if(GetProgressBarValue(hungbar[i]) < 90)
{
SetProgressBarColor(hungbar[i], 0x7BAD12FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) < 70)
{
SetProgressBarColor(hungbar[i], 0x96AD12FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) < 50)
{
SetProgressBarColor(hungbar[i], 0xAE9B11FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) < 30)
{
SetProgressBarColor(hungbar[i], 0xAD6B12FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) < 20)
{
SetProgressBarColor(hungbar[i], 0xAD3512FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) < 10)
{
SetProgressBarColor(hungbar[i], 0xAE1111FF);
UpdateProgressBar(hungbar[i], i);
}
if(GetProgressBarValue(hungbar[i]) > 90)
{
SetProgressBarColor(hungbar[i], 0x48CD27FF);
UpdateProgressBar(hungbar[i], i);
}
Re: [HELP]My Hunger , Energy is bug -_- -
IceCube! - 23.09.2014
Okay I can't see an issue with that code? If there is one it would be easier to find if you indented your code in PAWN brackets.
[pawn] [/pawn
Obviously ending the last bracket with ].
Could you describe the problem you have? Just the progress bar showing 0?
Also why are you updating the Progress bar twice?
pawn Код:
UpdateProgressBar(hungbar[i], i);
UpdateProgressBar(bladbar[i], i);
UpdateProgressBar(stabar[i], i);