- 0
Problema la sistemul de rapoarte automatizate PD
-
Similar Content
-
- 6 replies
- 1,166 views
-
- 0 replies
- 101 views
-
- 4 replies
- 398 views
-
- 1 answer
- 237 views
-
- 3 answers
- 355 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KingZone
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