SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/07/2013, 11:46 AM   #1
lider1241
Big Clucker
 
Join Date: Jul 2013
Location: Learning Pawn
Posts: 160
Reputation: -15
Default 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)?
__________________
Learning Pawn... :/
lider1241 is offline   Reply With Quote
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
Old 17/07/2013, 12:52 PM   #3
NotePadGaming
Big Clucker
 
NotePadGaming's Avatar
 
Join Date: Jul 2013
Location: England
Posts: 54
Reputation: -18
Default Re: AudioStream

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



+Rep if I Helped
NotePadGaming is offline   Reply With Quote
Old 17/07/2013, 01:04 PM   #4
lider1241
Big Clucker
 
Join Date: Jul 2013
Location: Learning Pawn
Posts: 160
Reputation: -15
Default Re: AudioStream

i cant afford radio station and i dont think i need it, i prefer Audiostream
__________________
Learning Pawn... :/
lider1241 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Please AudioStream xganyx Scripting Help 4 30/06/2013 11:06 AM
AudioStream oliver12 Scripting Help 5 29/08/2012 08:21 AM
AudioStream Chrillzen Scripting Help 11 06/06/2012 04:41 AM
AudioStream Elias_Haddad Scripting Help 0 17/03/2012 12:48 PM


All times are GMT. The time now is 03:13 AM.


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