PlayAudioStreamForPlayer help
#1

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"
Reply
#2

pawn Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
Reply
#3

Quote:
Originally Posted by jamesbond007
View Post
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?
Reply
#4

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

Quote:
Originally Posted by N0FeaR
View Post
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);
}
}
Reply
#6

Thanks guys i have fix that now i give rep to both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)