SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/12/2011, 12:14 AM   #1
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Sweden
Posts: 2,308
Reputation: 167
Question PlayAudioStreamForPlayer help

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"
__________________
Here is my discord server https://discord.gg/ucVpDkJ
N0FeaR is offline   Reply With Quote
Old 30/12/2011, 12:16 AM   #2
jamesbond007
Gangsta
 
jamesbond007's Avatar
 
Join Date: Oct 2009
Location: Canadia
Posts: 787
Reputation: 56
Default Re: PlayAudioStreamForPlayer help

pawn Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
jamesbond007 is offline   Reply With Quote
Old 30/12/2011, 12:18 AM   #3
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Sweden
Posts: 2,308
Reputation: 167
Default Re: PlayAudioStreamForPlayer help

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?
__________________
Here is my discord server https://discord.gg/ucVpDkJ
N0FeaR is offline   Reply With Quote
Old 30/12/2011, 12:18 AM   #4
diego_p11
Big Clucker
 
Join Date: Aug 2011
Posts: 70
Reputation: 5
Default Re: PlayAudioStreamForPlayer help

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
diego_p11 is offline   Reply With Quote
Old 30/12/2011, 12:23 AM   #5
jamesbond007
Gangsta
 
jamesbond007's Avatar
 
Join Date: Oct 2009
Location: Canadia
Posts: 787
Reputation: 56
Default Re: PlayAudioStreamForPlayer help

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);
}
}
jamesbond007 is offline   Reply With Quote
Old 30/12/2011, 12:24 AM   #6
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Sweden
Posts: 2,308
Reputation: 167
Default Re: PlayAudioStreamForPlayer help

Thanks guys i have fix that now i give rep to both
__________________
Here is my discord server https://discord.gg/ucVpDkJ
N0FeaR 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
PlayAudioStreamForPlayer Serafim_sd Русский/Russian 11 05/01/2012 09:24 AM
PlayAudioStreamForPlayer vassilis Scripting Help 2 07/12/2011 04:30 PM
Help with PlayAudioStreamForPlayer Compton Scripting Help 8 05/12/2011 09:49 PM
PlayAudioStreamForPlayer HondaCBR Scripting Help 5 03/12/2011 04:37 PM


All times are GMT. The time now is 08:49 AM.


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