Posts: 651
Threads: 103
Joined: Feb 2012
Reputation:
0
Hello dear sa-mp developers. I found out, that using PlayAudioStreamForPlayer in a OnPlayerConnect public function makes players crash or lag when they connect to the server. I don't know, if it depend on the link that i use or not, but does anyone else have such problem? Thank you. IF needed, here is the exact code i use:PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/s/22hsn12bxgn8b9e/welcome.wav?dl=1"); this have been working in 0.3e version! And it doesn't matter that link doesn't end at .wav
Posts: 118
Threads: 4
Joined: Feb 2009
Reputation:
0
PlayAudioStreamForPlayer(playerid, url[]);
works fine...
Seems that you have made a mistake.
Furthermore the music files have to be mp3-file. Maybe this could fix your bug.
Posts: 654
Threads: 20
Joined: Jul 2009
Reputation:
0
10.01.2013, 20:57
(
Последний раз редактировалось Jay_; 11.01.2013 в 00:01.
)
We've been using PlayAudioStreamForPlayer in OnPlayerConnect for many months on Las Venturas Playground and nobody has experienced any issues that I've been made aware of so I don't think this issue is directly related to the callback.
Posts: 2,799
Threads: 95
Joined: Jun 2006
Reputation:
0
Just tested under 03x, used PlayAudioStreamForPlayer as the first function under OnPlayerConnect. Everything went well, no crashes.