17.07.2013, 12:02
I assume that you already have a working code but with LIST style. So you just gotta replace DIALOG_STYLE_LIST with DIALOG_STYLE_INPUT and use inputtext[] to read what a user inputs:
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == WHATEVER_DIALOG)
{
if(response)
{
PlayAudioStreamForPlayer(playerid, inputtext);
}
return 1;
}
return 0;
}