PlayerPlaySound won't work -
davve95 - 05.03.2014
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!.
Re: PlayerPlaySound won't work -
Necip - 05.03.2014
Are you sure that you put the correct Sound ID? You can find the IDs here:
https://sampwiki.blast.hk/wiki/SoundID .
Re: PlayerPlaySound won't work -
davve95 - 06.03.2014
Yeah I have tierd with a casino sound ("You win")
And a garage port sound.
Can send the ids later if it's needed.
Re: PlayerPlaySound won't work -
Aerotactics - 06.03.2014
Show your script
Re: PlayerPlaySound won't work -
Threshold - 06.03.2014
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.
Re: PlayerPlaySound won't work -
davve95 - 06.03.2014
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!
.