SoundID 50050 Not Playing -
NoahF - 23.04.2014
I have this soundID, 50050, that is supposed to play when the player dies.
Код:
PlayerPlaySound(playerid, 50050, 0.0, 0.0, 0.0);
It's supposed to play a sound that says "Tell my wife I love her!" But I hear nothing when I die.
Maybe it's an outdated sound ID?
No idea.
Thanks,
NoahF
Re: SoundID 50050 Not Playing -
Nathan_Taylor - 23.04.2014
There has to be a position of the sound.
pawn Код:
stock PlayerSound(playerid, soundid)
{
new
Float: X,
Float: Y,
Float: Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, soundid, X, Y, Z);
}
then use
pawn Код:
PlayerSound(50050, playerid);
Basically, your code is playing that sound at the coordinates 0,0,0 for your player, so you'd only hear it if you were at 0,0,0
Or just replace your line with
pawn Код:
new
Float: X,
Float: Y,
Float: Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, 10050, X, Y, Z);
Re: SoundID 50050 Not Playing -
NoahF - 23.04.2014
Oh, lol. I should of known that. Thank you!
EDIT: still not playing any sound.
Re: SoundID 50050 Not Playing -
Nathan_Taylor - 23.04.2014
Quote:
Originally Posted by NoahF
Oh, lol. I should of known that. Thank you!
|
Not a problem, glad to help
Re: SoundID 50050 Not Playing -
Syncro - 23.04.2014
Only use the coordinates if you want the sound to be played at a certain position. Set coordinates all to 0 to just play the sound.
https://sampwiki.blast.hk/wiki/PlayerPlaySound
The ID 50050 is in the Old List:
https://sampwiki.blast.hk/wiki/SoundID
Try to play a sound in new list
Re: SoundID 50050 Not Playing -
Nathan_Taylor - 23.04.2014
Quote:
Originally Posted by Syncro
|
Oh, my bad, I was told you had to give it a coordinate.
Re: SoundID 50050 Not Playing -
NoahF - 23.04.2014
So now I'm trying this:
Код:
{7013, !"Johnny Sindacco", !"You are so dead, do you hear me? DEAD! D-E-A-D pal!"},
Sound ID 7013, and still no sound lol.
Re: SoundID 50050 Not Playing -
Nathan_Taylor - 23.04.2014
What is the code you are using? Also, sound id 7013 isn't listed on that page.
Re: SoundID 50050 Not Playing -
Kar - 23.04.2014
Do you have sound data in your gta files lol? maybe your gta is pirated right?
Re: SoundID 50050 Not Playing -
Pottus - 23.04.2014
Depends on GTA version, Kanada and I found that some sound ids would play for me but not him and vice versa.