Thread: AudioStream
View Single Post
Old 17/07/2013, 12:02 PM   #2
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: AudioStream

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;
}
[KHK]Khalid is offline   Reply With Quote