SA-MP Forums Archive
need little help with progress bar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need little help with progress bar (/showthread.php?tid=600913)



need little help with progress bar - LovelySoomro - 14.02.2016

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


Re: need little help with progress bar - Pottus - 14.02.2016

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