( '-') Era pra funcionar...
Eu testei isso aqui (no android ainda por cima) e funcionou, totalmente igual ao seu
Eu testei isso aqui (no android ainda por cima) e funcionou, totalmente igual ao seu
Código:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MUSIC)
{
if(response)
{
if(listitem < sizeof MusicLinks)
TocarRadio(playerid, MusicLinks[listitem]);
}
return 0;
}
return 1;
}
stock TocarRadio(playerid, const params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid)
{
foreach(new id : Player)
{
if(IsPlayerInVehicle(id, vehicleid))
PlayAudioStreamForPlayer(id, params);
}
}
else PlayAudioStreamForPlayer(playerid, params);
}