SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   AudioStream (https://forum.sa-mp.com/showthread.php?t=451476)

lider1241 17/07/2013 11:46 AM

AudioStream
 
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)?

[KHK]Khalid 17/07/2013 12:02 PM

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;
}

NotePadGaming 17/07/2013 12:52 PM

Re: AudioStream
 
Tbh, it will be easier to get a radio station and host it your self.

lider1241 17/07/2013 01:04 PM

Re: AudioStream
 
i cant afford radio station and i dont think i need it, i prefer Audiostream


All times are GMT. The time now is 06:04 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.