Progress bar problem - 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: Progress bar problem (
/showthread.php?tid=290431)
Progress bar problem -
Unte99 - 15.10.2011
Hi all, i'm hoping that the third time is the charm...
Well, the problem is that when i create the forth progress bar, the server shows Number of vehicle models 0 and the objects don't show, but the commands and other things work. Any ideas ?
Re: Progress bar problem -
TheLazySloth - 16.10.2011
You can show us some code? Like meybe just the textdraw part you used for the progress bar.
Re: Progress bar problem -
Unte99 - 16.10.2011
pawn Code:
// On the top
new Bar:Alkanumas[MAX_PLAYERS];
// OnGameModeInit
Alkanumas[playerid] = CreateProgressBar(409.000000, 432.000000, 52.0, 12.0,0xB6CE0B55, 100.0);
CMD:
ShowProgressBarForPlayer(playerid, Alkanumas[playerid]);
HideProgressBarForPlayer(playerid, Alkanumas[playerid]);
public function with a timer:
SetProgressBarValue(Alkanumas[playerid], Alkis[playerid]);
UpdateProgressBar(Alkanumas[playerid], playerid);