inputtext problem.
#1

pawn Код:
case 11:
        {
            if(!response) return 1;
            else
            {
                if(strlen(inputtext) > 1)
                {
                    new string[256];
                    format(string, sizeof(string), "AdmMsg: %s(%d) is requiring Admin assistance: %s", RemoveUnderScore(playerid), inputtext);
                    SendToAdmins(YELLOW, string);
                    format(string, sizeof(string), "An Admin should respond to your request soon. You can use /cancelassistance if you no longer need us.");
                    SendClientMessage(playerid, SHOUT, string);
                    AssistanceNeeded[playerid] = 1;
                    return 1;
                }
                else return ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT, "Requiring Admin Assistance", "Please tell us why you're requiring Admin assistance:", "Send", "Cancel");
            }
        }
That's my code for OnDialogResponse, but when I send it, it shows in game:

"AdmMsg: Their Name(Their ID) is requiring Admin assistance: "

It doesn't send the "inputtext" on the dialog.

Thanks!
Reply


Messages In This Thread
inputtext problem. - by iGetty - 25.05.2012, 13:36
Re: inputtext problem. - by ViniBorn - 25.05.2012, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)