Sound Bug? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Sound Bug? (
/showthread.php?tid=196592)
Sound Bug? -
SamyRomafia - 06.12.2010
pawn Код:
public TTD8()
{
new playerid;
PlayerPlaySound(playerid, 1135, 0.0, 0.0, 0.0);
return 1;
}
All player feels the 1135 sound.
What is the problem?
Re: Sound Bug? -
The_Moddler - 06.12.2010
And WTF is that?
You are using a variable that is equal to 0, and then playing the sound to playerid 0?
Re: Sound Bug? -
SamyRomafia - 06.12.2010
Quote:
Originally Posted by The_Moddler
And WTF is that?
You are using a variable that is equal to 0, and then playing the sound to playerid 0?
|
O_O WFT. I do not understand!!
Re: Sound Bug? -
Lynn - 06.12.2010
1: Do you want all player to hear it?
2: If not, when do you want only the 1 person to hear it?
Re: Sound Bug? -
SamyRomafia - 06.12.2010
1: NO.
PlayerPlaySound(
playerid,...)
all hear this sound, but I want you to hear this sound are playerid
Re: Sound Bug? -
Lynn - 06.12.2010
pawn Код:
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 1135, 0.0, 0.0, 0.0);
return 1;
}
That
should work, and play it for everyone, when they spawn.