Problem with my radio script (regarding PlayAudioStreamForPlayer)
#3

Ahh I finally found your problem

This is what's happening:

Let's take that you are playerid 0, and there are two other players: 1 and 2
1 and 2 have created a radio.

You enter the range of player1's radio, so it starts streaming.
In that same loop, the code detects that you are Not in range of player2's radio. So the streaming stops.


Your solution would be to create a variable that tracks who's radio player0 is listening to.
StopAudioStream may only happen if the playerid of that variable has been changed

Another solution is to make sure that StopAudioStream is only called when the player is in range of None radio.
(so don't call it from the moment the player isn't in range of A radio, but only call it if the player isn't in range of Any radio).
Reply


Messages In This Thread
Problem with my radio script (regarding PlayAudioStreamForPlayer) - by Chilco - 18.01.2012, 15:18
Re: Problem with my radio script (regarding PlayAudioStreamForPlayer) - by Chilco - 20.01.2012, 21:52
Re: Problem with my radio script (regarding PlayAudioStreamForPlayer) - by ғαιιοцт - 20.01.2012, 22:50

Forum Jump:


Users browsing this thread: 1 Guest(s)