SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/02/2013, 09:51 PM   #1
RavGaming
Little Clucker
 
Join Date: Dec 2012
Posts: 5
Reputation: 0
Default Playing audio stream in interior!

So ye I have looked around the forums on how to play an audio stream when a player enters a certain interior!
Lets say some one enters the LSPD and it plays music!
I have this

PlayAudioStreamForPlayer(playerid, "http://www.sounddogs.com/soundeffects/25/mp3/224714_SOUNDDOGS__ba.mp3", 246.783996,63.900199,1003.640625, Distance, 5);

Where would i put it?.
RavGaming is offline   Reply With Quote
Old 23/02/2013, 09:58 PM   #2
Lady-Happy
Little Clucker
 
Join Date: Sep 2012
Posts: 26
Reputation: 1
Default Re: Playing audio stream in interior!

pawn Code:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
           if(newinteriorid == LSPD) //Change the LSPD to some other interior
           {
                PlayAudioStreamForPlayer(playerid, "http://www.sounddogs.com/soundeffects/25mp3/224714_SOUNDDOGS__ba.mp3", 246.783996,63.900199,1003.640625, Distance, 5);
           }
    return 1;
}
Rep+ Please.
Lady-Happy is offline   Reply With Quote
Old 23/02/2013, 10:06 PM   #3
RavGaming
Little Clucker
 
Join Date: Dec 2012
Posts: 5
Reputation: 0
Default Re: Playing audio stream in interior!

Hey Lady Clucker!
C:\Users\Ravnet\Desktop\FC\gamemodes\iRP.pwn(17842 ) : error 017: undefined symbol "Distance"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
RavGaming is offline   Reply With Quote
Old 23/02/2013, 10:18 PM   #4
Da_Noob
Big Clucker
 
Join Date: Jun 2010
Location: Belgium
Posts: 175
Reputation: 5
Default Re: Playing audio stream in interior!

... seriously? You just copy-pasted or what?

Change the distance to the distance you want, like 100 or something.
__________________


Alexander Costigan
Da_Noob is offline   Reply With Quote
Old 23/02/2013, 10:28 PM   #5
RavGaming
Little Clucker
 
Join Date: Dec 2012
Posts: 5
Reputation: 0
Default Re: Playing audio stream in interior!

Thank you I relized the link was messed up so it would not work now its fixed!
RavGaming 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
Playing audio stream works only for me! pasha97 Scripting Help 11 27/11/2012 04:44 PM
Interior audio stream DarkOrion11 Scripting Help 5 17/11/2012 05:37 PM
Playing music stream in interior Just rp Scripting Help 20 27/02/2012 02:06 PM
FTP in audio stream? Jantjuh Everything and Nothing 8 08/02/2012 06:11 AM
Audio playing only for id 0 HondaCBR Scripting Help 3 25/11/2011 01:37 PM


All times are GMT. The time now is 01:40 PM.


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