PlayerPlaySound won't work
#1

Does someone know what's wrong if it won't appear any sound? With the above function.

I have tired with the coordinates where I wanted the sound to be. - Didn't work.

And I have tierd with that one on the Wiki page (So it plays above a player) Didn't worked either.

The code is on the wiki if you have to see.

I have also tried putted it under a command.

And also other sound ids.


Thanks a lot!.
Reply
#2

Are you sure that you put the correct Sound ID? You can find the IDs here: https://sampwiki.blast.hk/wiki/SoundID .
Reply
#3

Yeah I have tierd with a casino sound ("You win")
And a garage port sound.

Can send the ids later if it's needed.
Reply
#4

Show your script
Reply
#5

1) Make sure the sound ID is valid.
2) Make sure you have the full 'audio' folder of GTA, and not the cracked version.
3)
Quote:

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.

If you're trying to play the sound for a specific player, use:
pawn Код:
PlayerPlaySound(playerid, soundid, 0, 0, 0);
You don't need to add coordinates if you just want to play it straight to the player.
Reply
#6

Thanks a lot! It worked with

PlayerPlaySound(playerid, soundid, 0, 0, 0);


But on the Wiki it said:

PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);

So how should I do if I want the sound at a specific place?, so the problem won't come back again.


Edit: Nvm I fixed it! .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)