PlayAudioStreamForPlayer Issue
#1

I get this error whenever using the function:

pawn Код:
PlayAudioStreamForPlayer(playerid, "intro.mp3");
The error is:

pawn Код:
error 017: undefined symbol "PlayAudioStreamForPlayer"
I don't understand why, I have the server version 0.3e.
Reply
#2

have you got all the updated Includes?
Reply
#3

Do you have
pawn Код:
audio.inc and plugins audio
Reply
#4

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Do you have
pawn Код:
audio.inc and plugins audio
You don't need the audio plugin for that. It's an 0.3d function.

@Poster,

Make sure you have 0.3d or 0.3e includes.
Reply
#5

You need to link up a URL example:
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://mysite.com/intro.mp3");
if you're trying from localhost just do
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://localhost/intro.mp3");
Reply
#6

Thanks guys, got it working.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)