Problema con PlayerPlaySound
#9

Quote:
Originally Posted by Zamaroht
Quote:
Originally Posted by SAWC™
pawn Код:
PlayerPlaySound(P, Sid, X.X, Y.Y, Z.Z);
/*
P == id del player, ejemplo playerid.
Sid == id del sonido, ejemplo 1185.
X.X, Y.Y, Z.Z == coordenadas donde quieres que se escuche, ejemplo -10.1045, 4576.21, 0.4547
*/
Te aviso que aunque X, Y, y Z deberнan hacer lo que decнs, en realidad no funciona y el sonido se escucha de todas maneras sea donde sea. Asн que es irrelevante lo que se ponga en X, Y y Z, ya que el sonido se escucha igual estй donde estй. Yo suelo poner 0.0, 0.0, 0.0.
Serнa interensante que se escuchara en un solo lugar .

Quote:
Originally Posted by Cesar_Biker
Miren yo tengo esto

PlayerPlayMusic(i);

y con esa funcion me suena la musica la cuestion esque no esta definida en ninguna parte, podria ser ese el problema?
portque lo intente con PlayerPlaySound y tampoco va, se queda clabado en la cancion
Tienes que hacerlo con el formato que te dimos y para que lo escuchen todos tienes que hacer un loop:
pawn Код:
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0); // musica
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0); // para parar la musica ya puesta
Si todos lo tienen que escuchar entonces:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i ++) // esto nos permite convertir una variable como "i" cada uno de los jugadores
{
  PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
}

Reply


Messages In This Thread
Problema con PlayerPlaySound - by Cesar_Biker - 28.12.2009, 15:04
Re: Problema con PlayerPlaySound - by Zamaroht - 28.12.2009, 16:31
Re: Problema con PlayerPlaySound - by Miguel - 28.12.2009, 23:04
Re: Problema con PlayerPlaySound - by Cesar_Biker - 29.12.2009, 14:30
Re: Problema con PlayerPlaySound - by Zamaroht - 29.12.2009, 15:32
Re: Problema con PlayerPlaySound - by Miguel - 29.12.2009, 18:31
Re: Problema con PlayerPlaySound - by Zamaroht - 29.12.2009, 19:38
Re: Problema con PlayerPlaySound - by Cesar_Biker - 30.12.2009, 10:01
Re: Problema con PlayerPlaySound - by Miguel - 30.12.2009, 15:10
Re: Problema con PlayerPlaySound - by Cesar_Biker - 01.01.2010, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)