18.09.2015, 15:32
Correct is this:
PHP код:
if(dialogid == SONG_DIALOG)
{
if(response)
{
if(listitem== 0) PlayAudioStreamForPlayer(playerid, "http://xsfserver.com/music/Gangnam.mp3");
if(listitem== 1) PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/sPartyRocking.mp3");
if(listitem== 2) PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/Sexy.mp3");
if(listitem== 3) PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/CountingStars.mp3");
if(listitem== 4) PlayAudioStreamForPlayer(playerid,"http://xsfserver.com/music/LetItRock.mp3");
}
return 1;
}