[Help] Hide/Show Progressbar
#1

Код:
CMD:ss2(playerid,params[])
{
	if(GetPVarInt(playerid, "hungeronoff") == 0)
	{
		ShowProgressBarForPlayer(playerid, poop[playerid]);
		ShowProgressBarForPlayer(playerid, bladder[playerid]);
		TextDrawShowForPlayer(playerid, BSText[2]);
		TextDrawShowForPlayer(playerid, BSText[3]);
		SetPVarInt(playerid, "hungeronoff", 1);
	}
	else
	{
	    HideProgressBarForPlayer(playerid, poop[playerid]);
	    HideProgressBarForPlayer(playerid, bladder[playerid]);
		TextDrawHideForPlayer(playerid, BSText[2]);
		TextDrawHideForPlayer(playerid, BSText[3]);
		SetPVarInt(playerid, "hungeronoff", 0);
	}
	return 1;
}
why when I / SS2 textdraw just lost it? progressbar not lost.
please help me?
Reply
#2

no comment?
Reply
#3

If its not hiding that means "hungeronoff" isn't set to 1 or 2 or -1, etc. Its remaining on 0.
Reply
#4

thanks
Reply
#5

Your using the wrong kind of progress bars as well that version is old you need per-player progress bars.

http://pastebin.com/Hpy4hb3k
Reply
#6

Okey, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)