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

Replace
pawn Код:
format(string, sizeof(string), "AdmMsg: %s(%d) is requiring Admin assistance: %s", RemoveUnderScore(playerid), inputtext);
pawn Код:
format(string, sizeof(string), "AdmMsg: %s(%d) is requiring Admin assistance: %s", RemoveUnderScore(playerid),playerid, inputtext);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)