21.05.2012, 10:42
Bueno nose como explicarme la verdad,voy a hacer lo posible para que se entienda.Estoy tratando de hacer un dialog y que al seleccionar una canciуn esa se reproduzca en algъn momento(obviamente hay mas de una canciуn y la que elijas tiene que sonar)Llege a esto pero nose como hacer que suene la que yo elijo
Por ejemplo yo elijo la cancion 1 y que al subir al coche suene esa cancion
De esa manera estaria bien?pido una ayuda ya que no se me ocurre como hacerlo D:
pawn Код:
if(dialogid == MUSICAR1)
{
if(response)
{
if(listitem == 0)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 1)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 2)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 3)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 4)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 5)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 6)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 7)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 8)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 9)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 10)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
if(listitem == 11)
{
StopAudioStreamForPlayer(playerid);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "LINK");
}
}
return 1;
}
pawn Код:
new Musicar1[][] =
{
"LINK",
"LINK",
"LINK",
"LINK",
"LINK",
"LINK"
};