01.03.2014, 12:37
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:
command to enable the bars:
idk what's wrong...
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];
Код:
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; }