Progress bars dont show up
#1

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...
Reply
#2

You are creating 1 more with the same variable.
Reply
#3

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];
Reply
#4

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)