SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

Reply
 
Thread Tools Display Modes
Old 01/04/2018, 04:02 PM   #1
FxK1nG
Little Clucker
 
Join Date: Mar 2018
Posts: 7
Reputation: 0
Default Problema progres bar

Salut, nustiu de ce progres bar-ul arata doar la admini, ma puteti ajuta>
Cod sursa:
Code:
		if(PlayerInfo[playerid][pHUD5] == 1) {
			new expamount;
		    expamount = PlayerInfo[playerid][pLevel]*levelexp;
		    format(GlobalString, sizeof(GlobalString), "Level: %d / RP: %d/%d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], expamount);
		    PlayerTextDrawSetString(playerid, HudTD, GlobalString);
			PlayerTextDrawShow(playerid, HudTD);
			SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pLevel]*levelexp);
			SetPlayerProgressBarValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pExp]);
			ShowPlayerProgressBar(playerid, HudProgress[playerid]);
		}
		if(PlayerInfo[playerid][pHUD5] == 0) {
			new expamount;
		    expamount = PlayerInfo[playerid][pLevel]*levelexp;
		    format(GlobalString, sizeof(GlobalString), "Level: %d / RP: %d/%d", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp], expamount);
		    PlayerTextDrawSetString(playerid, HudTD, GlobalString);
			PlayerTextDrawShow(playerid, HudTD);
			PlayerTextDrawHide(playerid, HudTD);
			SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pLevel]*levelexp);
			SetPlayerProgressBarValue(playerid, HudProgress[playerid], PlayerInfo[playerid][pExp]);
			ShowPlayerProgressBar(playerid, HudProgress[playerid]);
			HidePlayerProgressBar(playerid, HudProgress[playerid]);
		}
Si
Code:
		case DIALOG_HUD5: {
		    if(response)
			{
			    if(listitem == 0)
			    {
			        PlayerInfo[playerid][pHUD5] = 0;
					PlayerTextDrawHide(playerid, HudTD);
			        HidePlayerProgressBar(playerid, HudProgress[playerid]);
				}
				if(listitem == 1)
				{
				    PlayerInfo[playerid][pHUD5] = 1;
				}
				Update(playerid, pHUD5x);
	      		SendClientMessage(playerid, COLOR_DARKPINK, "Progress-Bar options updated!"); }
		}
FxK1nG is offline   Reply With Quote
Old 02/04/2018, 11:29 AM   #2
FxK1nG
Little Clucker
 
Join Date: Mar 2018
Posts: 7
Reputation: 0
Default Re: Problema progres bar

up cineva ?
FxK1nG is offline   Reply With Quote
Old 05/04/2018, 07:43 AM   #3
ForCop
Banned
 
Join Date: Mar 2018
Location: Moldova of Republic
Posts: 122
Reputation: 5
Default Re: Problema progres bar

Quote:
Originally Posted by FxK1nG View Post
up cineva ?
nu vad nimic aici, care la admini sau la in simplu player sa fie aratate "progres bar"

poate e problema in functia SetPlayerProgressBarMaxValue, SetPlayerProgressBarValue, ShowPlayerProgressBar sau Update(playerid, pHUD5x)

Last edited by ForCop; 05/04/2018 at 09:04 AM.
ForCop is offline   Reply With Quote
Old 13/04/2018, 11:49 AM   #4
FxK1nG
Little Clucker
 
Join Date: Mar 2018
Posts: 7
Reputation: 0
Default Re: Problema progres bar

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; }
FxK1nG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Progres bar FxK1nG Scripting Help 1 01/04/2018 03:05 PM


All times are GMT. The time now is 07:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.