PlayAudioStreamForPlayer problem - 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 problem (
/showthread.php?tid=295813)
PlayAudioStreamForPlayer problem -
timaoux - 08.11.2011
hello everyone, i got a problem to play a sound with PlayAudioStreamForPlayer
pawn Код:
COMMAND:uav(playerid, params[])
{
PlayAudioStreamForPlayer(playerid,"http://www.upload-mp3.com/files/321702_5vfk4/UAV%20online%20Modern%20Warfare%202.mp3]UAV online Modern Warfare 2.mp3");
return 1;
}
this doesnt play the sound.
please help me thx
Re: PlayAudioStreamForPlayer problem -
Norn - 08.11.2011
1. That filehost has hotlink protection.
2. ]UAV online Modern Warfare 2.mp3");
What is this? You can't set titles for files, only radio streams.
Re : PlayAudioStreamForPlayer problem -
timaoux - 08.11.2011
did you know a web site to upload the .mp3 file and play this with PlayAudioStreamForPlayer ?
Re: PlayAudioStreamForPlayer problem -
Norn - 08.11.2011
Zippyshare is a free audio only filehost with direct linking enabled.
Re : PlayAudioStreamForPlayer problem -
timaoux - 08.11.2011
yes but it give a link with .html format and with PlayAudioStreamForPlayer we need a .mp3 or .ogg format
Re: Re : PlayAudioStreamForPlayer problem -
Norn - 08.11.2011
Quote:
Originally Posted by timaoux
yes but it give a like with .html format and with PlayAudioStreamForPlayer we need a .mp3 or .ogg format
|
Right click the download link and click copy link location....
Re : PlayAudioStreamForPlayer problem -
timaoux - 08.11.2011
no sound.
and why put this pic lol
Re: PlayAudioStreamForPlayer problem -
Norn - 08.11.2011
Then you've done it incorrectly, show me the sound url you're trying to play.
Re : PlayAudioStreamForPlayer problem -
timaoux - 08.11.2011
PlayAudioStreamForPlayer(playerid,"http://www20.zippyshare.com/d/71576632/443/UAV%20online%20Modern%20Warfare%202.mp3");
i have right click on download now image and copy link then past
that's the given link after upload
http://www20.zippyshare.com/v/71576632/file.html
Re: PlayAudioStreamForPlayer problem -
Norn - 08.11.2011
Right I'll PM you a method as I'm sure I could get in trouble for posting it here.