SA-MP Forums Archive
SoundID 50050 Not Playing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SoundID 50050 Not Playing (/showthread.php?tid=508794)



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
Посмотреть сообщение
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.


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.