SA-MP Forums Archive
Report system proplem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Report system proplem (/showthread.php?tid=457115)



Report system proplem - eastern - 09.08.2013

Hi,all i make report cmd and dialogs but when put the text in the dialog it didnot shown to the admin/or t didnot got reported but it report the input text only (the header of the dialog text) so what the proplem,thanks
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(dialogid == dialog1)
    {
    if(response)
      {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, response1,DIALOG_STYLE_INPUT, "Hacking report", "\nWrite player id and what you saw him do.", "Thanks", "Cancel");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Breaking the rules report", "\nWrite rule breaker id and what the rule he broke.", "Thanks", "Cancel");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Insulting report", "\nWrite player id here.", "Thanks", "Cancel");
            }
            if(listitem == 3)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Poaching report", "\nWrite player id here.", "Thanks", "Cancel");
            }
            if(listitem == 4)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Spam report", "\nWrite spammer id here.", "Thanks", "Cancel");
            }
            if(listitem == 5)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Not listed here report", "\nWrite what you want to say here be sure that it isn't stand on any other tip.", "Thanks", "Cancel");
            }
            if(listitem == 6)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Requesting admin report", "\nWrite what you want from admin", "Thanks", "Cancel");
            }
            if(listitem == 7)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Deathmatch report", "Information:\n\nWebsite: Soon\nForums: Soon\nTeamspeak: Soon | Port: Later", "Thanks", "Cancel");
            }
            if(listitem == 8)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Revenge killing report", "Information:\n\nIf you think you still need further help, then please use /newb to ask a question\nIf you need EVEN MORE help, then please use /requesthelp, and a community advisor will be with you shortly.\nAlso, please note that /newb is for script-related questions only.", "Thanks", "Cancel");
            }
            if(listitem == 9)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Chicken running report", "Information:\n\nLocks can be bought at a 24/7 for $5000 using /buy.\nYou can type /lock to lock your vehicle, and /lock once more to unlock it.\nYou will lose your lock when you log out.", "Thanks", "Cancel");
            }
            if(listitem == 10)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Kos report", "Information:\n\nSkins can be bought at a clothes store, such as Binco, by typing /buyclothes.\nIf you are in a family or faction, you can type /clothes to change your skin for free.\nTo change your skin, you must know the SkinID. If you don't know it, then just search for it on ******.", "Thanks", "Cancel");
            }
            if(listitem == 11)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Car ramming report", "Information:\n\nATMs are little machines located around Los Santos, that allows you to deposit, or withdraw money into your bank account.\nInstead of running to the bank, you can simply access your bank account through one of these.\nIf you need help with the ATM commands, just type /help.", "Thanks", "Cancel");
            }
            if(listitem == 12)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Money farming report", "Information:\n\nFactions such as the LSPD, FBI, EDLS, etc. are legal organizations.\nYou can apply to join for these factions at http://gta-prp.com.", "Thanks", "Cancel");
            }
            if(listitem == 13)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Log to avoid report", "Information:\n\nGangs are obviously illegal organizations. To view the list of families, simply type /families.\nDo not use /families to metagame someone's name. You must ICly find them and roleplay with them, in order for you to join.\nMost families also do points, which you can earn money from.", "Thanks", "Cancel");
            }
            if(listitem == 14)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Car Surfing report", "Information:\n\nHitmen are pretty much 'hired killers' You can type /contract to put a hit on someone, but it must be for a RP reason.\nIf someone finds out that you put an OOC hit on someone, you will get in trouble and possibly banned.\nYou DO NOT ask to be a hitman, because they ask you, if they want you.\nPlease note that if you EVER release a hitman's name, you WILL BE BANNED.", "Thanks", "Cancel");
            }
            if(listitem == 15)
            {
                ShowPlayerDialog(playerid, response1, DIALOG_STYLE_INPUT, "Ban Evader report", "Information:\n\nWebsite: Soon\nForums: Soon\nTeamspeak: Soon | Port: Later", "Thanks", "Cancel");
            }
            if(!IsNull(inputtext))
            {
                SendReportToQue(playerid, inputtext);
                SendClientMessage(playerid, COLOR_GREY, "Reported");
                JustReported[playerid]=25;
                SendClientMessageEx(playerid, COLOR_YELLOW, "Your report message was sent to the Admins On Duty, please wait patiently!");
                return 1;
            }
        }
    }
-And this is the command:
pawn Код:
CMD:report(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2 && PlayerInfo[playerid][pAdmin] < 1338)
    {
        SendClientMessageEx(playerid, COLOR_GRAD2, "You can't submit reports as an administrator.");
        return 1;
    }
    if(PlayerInfo[playerid][pRMuted] != 0)
    {
        ShowPlayerDialog(playerid,7955,DIALOG_STYLE_MSGBOX,"Report blocked","You are blocked from submitting any reports!\n\nTips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Do not flame admins.\n- Report only for in-game items.\n- For shop orders use the /onlineshop command","Close", "");
        return 1;
    }
    if(JustReported[playerid] > 0)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "Wait 25 seconds before sending another report!");
        return 1;
    }
    else  
    {
       ShowPlayerDialog(playerid, dialog1, DIALOG_STYLE_LIST, "Report", "Hacking\nBreaking the rules\nInsulting\nPoaching\nSpam\nNot listed here\nI want admin\nDeathmatch\nRevenge killing\nChicken running\nKilling on sight\nCar ramming\nMoney farming\nLog to avoid\nCar surfing\nBan Evader", "Continue", "Cancel");
       return 1;
    }
}



Re: Report system proplem - dEcooR - 09.08.2013

You are using same dialog IDS - response1,and problem is maybe in this SendReportToQue(playerid, inputtext);


Re: Report system proplem - eastern - 09.08.2013

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
You are using same dialog IDS - response1,and problem is maybe in this SendReportToQue(playerid, inputtext);
The dalogs works so good but the proplem exactly like you say in that line so how to fix it?


Re: Report system proplem - eastern - 09.08.2013

i think the proplem exactly in (inputtext) so what i can replace it for?