need little help with progress bar
#1

Quote:

new Bar:bar;
forward ProgrecoBar(playerid);
public ProgrecoBar(playerid)
{
bar = CreateProgressBar(5.00, 328.00, 213.50, 3.20, 16777160, 100.0);
SetProgressBarValue(bar, pSpeed);
if(AccInfo[playerid][tdm] == 1)
{
TextDrawShowForPlayer(playerid,sprite[playerid]);
ShowProgressBarForPlayer(playerid,bar);
PlayerPlaySound(playerid,1186 ,0, 0, 0);
TextDrawHideForPlayer(playerid, Health[playerid]);
TextDrawHideForPlayer(playerid, Countdown);
TextDrawHideForPlayer(playerid,rank);
TextDrawHideForPlayer(playerid,kills);
TextDrawHideForPlayer(playerid,Stats[playerid]);
TextDrawHideForPlayer(playerid,R_1[playerid]);
}
if(GetProgressBarValue(bar))
{
SetTimer("changingmap",5000, false);
}
return 1;
}

this dialog properly work but only progress bar not show on screen why plz help
Reply
#2

You are using the wrong kind of textdraws for one and you are using an old progress bar include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)