Playing audio stream in interior!
#1

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?.
Reply
#2

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.
Reply
#3

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
Reply
#4

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

Change the distance to the distance you want, like 100 or something.
Reply
#5

Thank you I relized the link was messed up so it would not work now its fixed!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)