errors
#5

Oh sorry, change the lines to this, because the x y z are stored in these arrays:
pawn Код:
PlayAudioStreamForPlayer(i, url, Pos[0], Pos[1], Pos[2], 1);
Or yes, rest the of the parameters are optional, you can just do:
pawn Код:
PlayAudioStreamForPlayer(i, url);
And in that case also remove the new Pos[3].

E:// Leonardo, btw that loop isn't the most efficient one. Because you have to call the function GetMaxPlayers() alot, when a lot of people in the server. It's faster to use just MAX_PLAYERS, or better, use foreach include.
Reply


Messages In This Thread
errors - by Vizi - 17.08.2012, 18:55
Re: errors - by Dan. - 17.08.2012, 18:59
Re: errors - by leonardo1434 - 17.08.2012, 19:06
Re: errors - by Vizi - 17.08.2012, 19:06
Re: errors - by Dan. - 17.08.2012, 19:08
Re: errors - by leonardo1434 - 17.08.2012, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)