PlayAudioStreamForPlayer Small Question
#1

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

or i need to upload to a webhost?
Reply
#2

you can upload it whenever you want... .mp3 files works fine
Reply
#3

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 ?
Reply
#4

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

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.
Reply
#6

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

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");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)