Jump to content
  • 0

textdraw reports/cheaters problema


Question

Posted

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); }

 

6 answers to this question

Recommended Posts

  • 0
Posted
	}	
			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); }

 

  • 0
Posted
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); }

 

  • 0
Posted (edited)

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
  • 0
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.