PlayAudioStreamForPlayer help - 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: PlayAudioStreamForPlayer help (
/showthread.php?tid=307301)
PlayAudioStreamForPlayer help -
N0FeaR - 30.12.2011
i try to make so ppl can hear that music i play
i use this
Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687", X, Y, Z, Distance, 100);
error i get
Code:
C:\Users\rova\Desktop\RMRP\gamemodes\RMRP.pwn(80158) : error 017: undefined symbol "X"
Re: PlayAudioStreamForPlayer help -
jamesbond007 - 30.12.2011
pawn Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
Re: PlayAudioStreamForPlayer help -
N0FeaR - 30.12.2011
Quote:
Originally Posted by jamesbond007
pawn Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
|
show that be so when ppl are near me that hear my music?
Re: PlayAudioStreamForPlayer help -
diego_p11 - 30.12.2011
The x is not defined, u need to define it, and also at the same time u helped me with ur questiom answering mee a question that i made
Re: PlayAudioStreamForPlayer help -
jamesbond007 - 30.12.2011
Quote:
Originally Posted by N0FeaR
show that be so when ppl are near me that hear my music?
|
no, if u want only who are close to hear music then do this:
pawn Code:
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)){
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687", X, Y, Z, Distance, 1);
}
}
Re: PlayAudioStreamForPlayer help -
N0FeaR - 30.12.2011
Thanks guys i have fix that now i give rep to both