SA-MP Forums Archive
Why won't my dialog show? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why won't my dialog show? (/showthread.php?tid=191394)



Why won't my dialog show? - Jacob_Venturas - 19.11.2010

pawn Код:
ShowPlayerDialog(playerid,33215,DIALOG_STYLE_INPUT,"Requesting Assistance","You have chosen to request assistance from an admin. If you are wanting to report a rule breaker/n then please use /report. An admin will be with you shortly after you sumbit this.","Sumbit Help","Cancel");
This isn't showing like it should when I type a command. Thanks for any help


Re: Why won't my dialog show? - Leeroy. - 19.11.2010

Quote:
Originally Posted by Jacob_Venturas
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid,33215,DIALOG_STYLE_INPUT,"Requesting Assistance","You have chosen to request assistance from an admin. If you are wanting to report a rule breaker/n then please use /report. An admin will be with you shortly after you sumbit this.","Sumbit Help","Cancel");
This isn't showing like it should when I type a command. Thanks for any help
Have you coded dialogid == 33215 ?


Re: Why won't my dialog show? - Jacob_Venturas - 19.11.2010

Yes
pawn Код:
if(dialogid == 33215) //ASSISTANCE DIALOG XKNIIVES
    {
        if(response)
        {
            new string[128];
            if(strlen(inputtext) >= 150)
            {
                DisplayDialogForPlayer(playerid, 33215); //ASSISTANCE
                SendClientMessage(playerid, COLOR_GREY, "   Your request is too long [MAX: 150 CHARACTERS]");
                return 0;
            }
            if(!strlen(inputtext))
            {
                DisplayDialogForPlayer(playerid, 33215); //ASSISTANCE
                SendClientMessage(playerid, COLOR_GREY, "   Fill in the box!");
                return 1;
            }
            SendClientMessage(playerid, COLOR_YELLOW, " We have sumbitted your assistance request to all online admins!");
            format(string, sizeof(string), "Assistance Report from: %s[%d]", PlayerName(playerid), playerid);
            ABroadCast(COLOR_LIGHTBLUE,string,1);
            format(string, sizeof(string), "Text: %s", inputtext);
            ABroadCast(COLOR_LIGHTBLUE,string,1);
            ABroadCast(COLOR_LIGHTBLUE,"Type '/aass' to accept or 'dass' to decline this assistance request",1);
            PlayerNeedsAssistance[playerid] = 1;
            SetTimerEx("AssistanceReset", 60000, false, "i", playerid);
        }
       
    }



Re: Why won't my dialog show? - Leeroy. - 19.11.2010

Try changing dialog id.