Problema progres bar
#4

Code:
function OnPlayerUpdates(playerid) {
	new string[45];
	if(PlayerInfo[playerid][pHUD4] == 1) {
		new expamount;
	    expamount = PlayerInfo[playerid][pLevel]*levelexp;
	    format(string, sizeof(string), "Level: %d / RP: %d/%d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], expamount);
	    PlayerTextDrawSetString(playerid, HudTD, string);
		PlayerTextDrawShow(playerid, HudTD);
		SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pLevel]*levelexp);
		SetPlayerProgressBarValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pExp]);
		ShowPlayerProgressBar(playerid, HudProgress[playerid]);
	}
	return 1; }
Reply


Messages In This Thread
Problema progres bar - by FxK1nG - 01.04.2018, 16:02
Re: Problema progres bar - by FxK1nG - 02.04.2018, 11:29
Re: Problema progres bar - by ForCop - 05.04.2018, 07:43
Re: Problema progres bar - by FxK1nG - 13.04.2018, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)