Jump to content
  • 0

textdraw reports/cheaters problema


caltabos

Question

am bagat un siste sa apara REPORTS / CHEATERS cand da cineva report si a mers! Dar daca da cinevea report cu un cheater il pune la REPORTS nu la CHEATERS!

 

			}	
			if(PlayerInfo[i][pAdmin] >= 1) {
				new reports=0,cheaters=0,strr[128];
				foreach(Player,id)
				{
					if(GetPVarInt(id, "Reported") == 1)  { reports++; }
					if(GetPVarInt(id, "Reported") == 2)  { cheaters++; }
				}
				if(reports > 0)
				{
					PlayerTextDrawShow(i, ReportsTD);
					format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
					PlayerTextDrawSetString(i, ReportsTD, strr);
				}
				else if(reports == 0) { PlayerTextDrawHide(i, ReportsTD); }
			}
			else { PlayerTextDrawHide(i, ReportsTD); }

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
	}	
			if(PlayerInfo[i][pAdmin] >= 1) {
				new reports=0,cheaters=0,strr[128];
				foreach(Player,id)
				{
					if(GetPVarInt(id, "Reported") == 1)  { reports++; }
					if(GetPVarInt(id, "Reported") == 2)  { cheaters++; }
				}
				if(reports > 0 || cheaters > 0)
				{
					PlayerTextDrawShow(i, ReportsTD);
					format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
					PlayerTextDrawSetString(i, ReportsTD, strr);
				}
				else if(reports == 0 && cheaters == 0) { PlayerTextDrawHide(i, ReportsTD); }
			}
			else { PlayerTextDrawHide(i, ReportsTD); }

 

Link to comment
Share on other sites

  • 0
1 oră în urmă, andy47 a spus:

	}	
			if(PlayerInfo[i][pAdmin] >= 1) {
				new reports=0,cheaters=0,strr[128];
				foreach(Player,id)
				{
					if(GetPVarInt(id, "Reported") == 1)  { reports++; }
					if(GetPVarInt(id, "Reported") == 2)  { cheaters++; }
				}
				if(reports > 0 || cheaters > 0)
				{
					PlayerTextDrawShow(i, ReportsTD);
					format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
					PlayerTextDrawSetString(i, ReportsTD, strr);
				}
				else if(reports == 0 && cheaters == 0) { PlayerTextDrawHide(i, ReportsTD); }
			}
			else { PlayerTextDrawHide(i, ReportsTD); }

 

E:\Gamemodes\burned.ro\gamemodes\GM.pwn(29760) : error 017: undefined symbol "Reports"
E:\Gamemodes\burned.ro\gamemodes\GM.pwn(29760) : error 029: invalid expression, assumed zero
E:\Gamemodes\burned.ro\gamemodes\GM.pwn(29760) : error 029: invalid expression, assumed zero
E:\Gamemodes\burned.ro\gamemodes\GM.pwn(29760) : fatal error 107: too many error messages on one line

Linia 29760 e: 

else { PlayerTextDrawHide(i, ReportsTD); }

 

Link to comment
Share on other sites

  • 0

In comanda /report, in codul in care setezi un report de "cheater", asigura-te ca exista o linie de genul:

SetPVarInt(giveplayerid, "Reported", 2);

 

..unde giveplayerid ar putea fi denumit altfel in functie de codul tau. Ultimul parametru este cel important.

Edited by RaduRZM
Link to comment
Share on other sites

  • 0
La 11.04.2019 la 0:56, RaduRZM a spus:

In comanda /report, in codul in care setezi un report de "cheater", asigura-te ca exista o linie de genul:

SetPVarInt(giveplayerid, "Reported", 2);

 

..unde giveplayerid ar putea fi denumit altfel in functie de codul tau. Ultimul parametru este cel important.

pai da e 2:
 

				case 1: {
					format(string, sizeof(string), "%s (%d) l-a raportat pe %s (%d) pentru cheats.", GetName(playerid), playerid, GetName(id), id);
					SendAdminMessage(0xC9161FFF, string, 1);

					SetPVarInt(id, "Reported", 1);
					SetPVarInt(id, "ReportType", 2);
					SetPVarString(id, "ReportedBy", GetName(playerid));
					SetPVarInt(id, "ReportScore", GetPVarInt(id, "ReportScore")+1);			
				}

e reporttype de 2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.