05.05.2013, 09:15
pawn Код:
//Top GM
#define AddMusica 20000
pawn Код:
//OnPlayerCommandText
if(strcmp(cmdtext,"/addm",true) == 0)
{
ShowPlayerDialog(playerid, AddMusica, DIALOG_STYLE_INPUT, "Adicionar Musica","Para ouvires a musica tens d ecolocar o link em .mp3","Adicionar!","Cancelar!");
return true;
}
pawn Код:
//OnDialogResponse
/*Line 94 */if(dialogid == AddMusica){
if(response){
OnPlayerCommandText(playerid,"/radio");
}
else{
new linkmusica;
PlayAudioStreamForPlayer(playerid, "%s", linkmusica);
}
}
return true;
}
Код:
(94) : warning 225: unreachable code