SA-MP Forums Archive
Progress bars dont show up - 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 bars dont show up (/showthread.php?tid=497975)



Progress bars dont show up - Lidor124 - 01.03.2014

I use progress include 1.3.1...
When typing the command the bars dont show up and SendClientMessage does.

at the top of my GM:

Код:
new Bar:HungerBar[MAX_PLAYERS];
new Bar:PeeBar[MAX_PLAYERS];
command to enable the bars:
Код:
CMD:showhunger(playerid, params[])
{
//	HungerBar[playerid] = CreateProgressBar(550.00, 107.00, 55.50, 6.50, -16776961, 100.0);
//	PeeBar[playerid] = CreateProgressBar(550.00, 135.00, 55.50, 6.50, -721485569, 100.0);
	HungerBar[playerid] = CreateProgressBar(550.00, 107.00, 55.50, 6.50, COLOR_TWRED, 100.0);
	PeeBar[playerid] = CreateProgressBar(550.00, 135.00, 55.50, 6.50, COLOR_YELLOW, 100.0);
	SetProgressBarValue(HungerBar[playerid], 100.0);
	SetProgressBarValue(PeeBar[playerid], 100.0);
	ShowProgressBarForPlayer(playerid, HungerBar[playerid]);
	ShowProgressBarForPlayer(playerid, PeeBar[playerid]);
	SendClientMessage(playerid, COLOR_WHITE, "You have enabled the hunger and pee bars!");
	return 1;
}
idk what's wrong...


Re: Progress bars dont show up - Maime - 01.03.2014

You are creating 1 more with the same variable.


Re: Progress bars dont show up - Lidor124 - 01.03.2014

Quote:
Originally Posted by Maime
Посмотреть сообщение
You are creating 1 more with the same variable.
But they are different

Код:
new Bar:HungerBar[MAX_PLAYERS];
new Bar:PeeBar[MAX_PLAYERS];



Re: Progress bars dont show up - Lidor124 - 02.03.2014

BUMP