Jump to content
  • 0

Problema la sistemul de rapoarte automatizate PD


KingZone

Question

Problema intalnita (descriere):Problema sistemul de rapoarte pentru pd. folosesc gm saints nam avut nicio eroare cand la introdus dar in joc nu imi citeste nimic adica nu spune cate arestari are fiecare membru,Tickets,confiscari de licienta si multe altele
Ero(area / rile) / warning-(ul / urile):Nicio eroare sau warning
Liniile de cod / sursa / script-ul(obligatoriu):

//define
//Rapoarte automatizate PD!
#define DIALOG_RAPORTA1             100
#define DIALOG_RAPORTA2             101
#define DIALOG_RAPORTA3             102
#define DIALOG_RAPORT1              103
#define DIALOG_RAPORT2              104
#define DIALOG_RAPORT3              105


COMENZI ZCMD:
CMD:checkraport(playerid, params[])
{
	new szMessage[256], id;
	if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pAdmin] >= 1)
	{
	    format(szMessage, sizeof(szMessage), "%s raport (%s):\n *Runners - %d\n *Arrests - %d\n *Tickets - %d", PlayerInfo[id][pNormalName], NumeFactiune(PlayerInfo[id][pMember]), PlayerInfo[playerid][pRRunner], PlayerInfo[playerid][pRArrest], PlayerInfo[playerid][pRTicket]);
	    ShowPlayerDialog(playerid, DIALOG_RAPORTA3, DIALOG_STYLE_MSGBOX, "LSPD Raports", szMessage, "Ok", "");
	}
	return 1;
}
CMD:myraport(playerid, params[])
{
	new szMessage[256];
	if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) return SCM(playerid, COLOR_WHITE, "Nu faci parte dintr-o factiune.");
	if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
	{
	    format(szMessage, sizeof(szMessage), "Your raport:\n *Runners - %d\n *Arrests - %d\n *Tickets - %d", PlayerInfo[playerid][pRRunner], PlayerInfo[playerid][pRArrest], PlayerInfo[playerid][pRTicket]);
	    ShowPlayerDialog(playerid, DIALOG_RAPORTA3, DIALOG_STYLE_MSGBOX, "LSPD Raports", szMessage, "Ok", "");
	}
	return 1;
}

//DIALOGURI 
//Rapoarte System
	if(dialogid == DIALOG_RAPORTA1)
	{
		if(response)
		{
		   if(listitem == 0)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 1)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0", "Select", "Exit");
		   }
		   if(listitem == 1)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 2)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		   if(listitem == 2)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 3)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		   if(listitem == 3)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 4)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		   if(listitem == 4)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 5)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		   if(listitem == 5)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 6)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		   if(listitem == 6)
		   {
			  ShowPlayerDialog(playerid, DIALOG_RAPORTA2, DIALOG_STYLE_TABLIST_HEADERS, "Raport (Rank 7)", "Raport\tMissions\nRunners\t0\nArrests\t0\nTickets\t0\nLicenses Confiscate\t0", "Select", "Exit");
		   }
		}
		return 1;
	}
	if(dialogid == DIALOG_RAPORTA2)
	{
	   if(response)
	   {
           if(listitem == 0)
           {
		         new szMessage[256];
		         format(szMessage, sizeof(szMessage), "Scrie in tabelul de mai jos numarul de misiuni pe care membrii tai de rank 1 trebuie sa il faca.\nMinim [1 - Misiune] | Maxim [200 - Misiuni]");
                 ShowPlayerDialog(playerid, DIALOG_RAPORT1, DIALOG_STYLE_INPUT, "Change Raport", szMessage, "Done", "Cancel");
		   }
           if(listitem == 2)
           {
		         new szMessage[256];
		         format(szMessage, sizeof(szMessage), "Scrie in tabelul de mai jos numarul de misiuni pe care membrii tai de rank 1 trebuie sa il faca.\nMinim [1 - Misiune] | Maxim [200 - Misiuni]");
                 ShowPlayerDialog(playerid, DIALOG_RAPORT2, DIALOG_STYLE_INPUT, "Change Raport", szMessage, "Done", "Cancel");
		   }
           if(listitem == 3)
           {
		         new szMessage[256];
		         format(szMessage, sizeof(szMessage), "Scrie in tabelul de mai jos numarul de misiuni pe care membrii tai de rank 1 trebuie sa il faca.\nMinim [1 - Misiune] | Maxim [200 - Misiuni]");
                 ShowPlayerDialog(playerid, DIALOG_RAPORT3, DIALOG_STYLE_INPUT, "Change Raport", szMessage, "Done", "Cancel");
		   }
		}
	}
	if(dialogid == DIALOG_RAPORT1)
    {
		if(response)
		{
           SCM(playerid, COLOR_WHITE, "Ai schimbat raportul pentru rank 1 in: %d Runners");
		}
		return 1;
	}
    if(dialogid == DIALOG_RAPORT1)
    {
		if(response)
		{
           SCM(playerid, COLOR_WHITE, "Ai schimbat raportul pentru rank 1 in: %d Arrests");
		}
		return 1;
	}
    if(dialogid == DIALOG_RAPORT1)
    {
		if(response)
		{
           SCM(playerid, COLOR_WHITE, "Ai schimbat raportul pentru rank 1 in: %d Tickets");
		}
		return 1;
	}


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da am incercat sa schimb simbolu la %d cu %s dar nu a functionat daca aveti o parere,idee ajutatima sa rezolv acest sistem.(

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Te intreb 2 lucruri. 

1: Ai tabelele pentru rapoarte in baza de date?

2: Imi arati si mie daca ai variabilele puse la comenzile respective (sa adauge punct de raport.) , de ex (/arrest) sau tot asa. Server-ul nu poate sa-ti arate ceva ce nu exista , stiai? :)) 

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.