PDA

View Full Version : PlayAudioStreamForPlayer not work in 0.3.7 ?


MarkHud
19/05/2015, 04:39 AM
PlayAudioStreamForPlayer not work in 0.3.7 ?
nothing appears

In 0.3z if I work

Fungi
19/05/2015, 06:41 AM
It works

MarkHud
19/05/2015, 02:28 PM
It is not calling PlayAudioStreamForPlayer
It does not run

Smileys
19/05/2015, 02:30 PM
Ingame:

Press ESC -> Options -> Audio settings -> Radio

Make sure radio isn't 0(all the bars dark)

MarkHud
19/05/2015, 03:29 PM
Ingame:

Press ESC -> Options -> Audio settings -> Radio

Make sure radio isn't 0(all the bars dark)

Is not that.
My GM worked well. But actualziar to 0.3.7 PlayAudioStreamForPlayer functions are not working.
No nothing appears on the screen .
Just run the rest of the functions .

I tried a GM white, It does not work.

Normally on the screen should look like this:

http://i.imgur.com/sTA8SCF.png

But simply nothing happens. No nothing appears on the screen .

PowerPC603
19/05/2015, 11:20 PM
If your audio is turned off, it won't play anything and the text onscreen won't appear as well.
Had that same problem once, GTA turned my sound off for some reason after restarting the game.
After turning it on again, it worked again.

It's not server sided problem, it's the game itself.
The server sends the message to your client, but if audio is turned off, the client ignores the server message and won't play the sounds and won't show the text at the bottom of the screen.
It also won't add anything to the chatbox.

Video for proof that turning off music in the client disables PlayAudioStreamForPlayer:
http://youtu.be/LotS9n9_VzQ

Abagail
20/05/2015, 12:20 AM
Now that I think of it, is there anyway to detect if the player plays it or not? It'd be great atleast to have the function return 0 if the client doesn't play the sound for the player.

Patrik356b
20/05/2015, 07:34 AM
Now that I think of it, is there anyway to detect if the player plays it or not? It'd be great atleast to have the function return 0 if the client doesn't play the sound for the player.

Nope.
Also:
Return Values:

1: The function executed successfully.
0: The function failed to execute. The player specified does not exist.

So it should return -1 i think if this gets implemented.