Why won't my dialog show?
#1

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
Reply
#2

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 ?
Reply
#3

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);
        }
       
    }
Reply
#4

Try changing dialog id.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)