SoundID 50050 Not Playing
#1

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
Reply
#2

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);
Reply
#3

Oh, lol. I should of known that. Thank you!

EDIT: still not playing any sound.
Reply
#4

Quote:
Originally Posted by NoahF
Посмотреть сообщение
Oh, lol. I should of known that. Thank you!
Not a problem, glad to help
Reply
#5

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
Reply
#6

Quote:
Originally Posted by Syncro
Посмотреть сообщение
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
Oh, my bad, I was told you had to give it a coordinate.
Reply
#7

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.
Reply
#8

What is the code you are using? Also, sound id 7013 isn't listed on that page.
Reply
#9

Do you have sound data in your gta files lol? maybe your gta is pirated right?
Reply
#10

Depends on GTA version, Kanada and I found that some sound ids would play for me but not him and vice versa.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)