Playing audio stream in interior! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Playing audio stream in interior! (
/showthread.php?tid=418151)
Playing audio stream in interior! -
RavGaming - 23.02.2013
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?.
Re: Playing audio stream in interior! -
Lady-Happy - 23.02.2013
pawn Код:
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.
Re: Playing audio stream in interior! -
RavGaming - 23.02.2013
Hey Lady Clucker!
C:\Users\Ravnet\Desktop\FC\gamemodes\iRP.pwn(17842 ) : error 017: undefined symbol "Distance"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: Playing audio stream in interior! -
Da_Noob - 23.02.2013
... seriously? You just copy-pasted or what?
Change the distance to the distance you want, like 100 or something.
Re: Playing audio stream in interior! -
RavGaming - 23.02.2013
Thank you I relized the link was messed up so it would not work now its fixed!