AudioStream
#1

I have audiostream FS but its annoying to add whatever song i want to DIALOG_STYLE_LIST i have to add it on PWN file and compile it and update the server so - i dont want to, i want to know how do i make DIALOG_STYLE_INPUT that if i copy and paste there a link like from the website kiwi6 (i upload my songs there) it will play song in the server.

1. What the code to do it (i pawn beginenr)
2. What includes and define should be
3. Where to put the code? (under ongamemodeinit)?
Reply
#2

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

Tbh, it will be easier to get a radio station and host it your self.
Reply
#4

i cant afford radio station and i dont think i need it, i prefer Audiostream
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)