SA-MP Forums Archive
PlayAudioStreamForPlayer Small Question - 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 Small Question (/showthread.php?tid=354964)



PlayAudioStreamForPlayer Small Question - Kirollos - 28.06.2012

i want to load a .mp3 from scriptfiles, will that work?

or i need to upload to a webhost?


Re: PlayAudioStreamForPlayer Small Question - «XTC» - 28.06.2012

you can upload it whenever you want... .mp3 files works fine


Re: PlayAudioStreamForPlayer Small Question - Kirollos - 28.06.2012

but i cant load it from server folder/scriptfiles ?

i want to load it from scriptfiles, so what can i write in the url in PlayAudioStreamForPlayer ?


Re: PlayAudioStreamForPlayer Small Question - [KHK]Khalid - 28.06.2012

You gotta upload them somewhere to get the .mp3 urls then use them.


Re: PlayAudioStreamForPlayer Small Question - phillip875 - 28.06.2012

Simple:

pawn Код:
new file[128];
format(file,sizeof(file),"music/example.mp3");
If your gonna load it from script files, create a folder called music in there.


Re: PlayAudioStreamForPlayer Small Question - Kirollos - 28.06.2012

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
You gotta upload them somewhere to get the .mp3 urls then use them.
Okay, Thanks

Quote:
Originally Posted by phillip875
Посмотреть сообщение
Simple:

pawn Код:
new file[128];
format(file,sizeof(file),"music/example.mp3");
If your gonna load it from script files, create a folder called music in there.
Why do i need to use format? anyway i have known i cant put them in scriptfiles, i need to upload to a webhost.

+Rep for everyone


Re: PlayAudioStreamForPlayer Small Question - phillip875 - 28.06.2012

You can put it in script files, you just need to format the location.

Thats why I did:
pawn Код:
format(file,sizeof(file),"music/example.mp3");