help dialogs #may have in asking, i forget
#7

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
Код:
CMD:radio(playerid, params[])
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "{00FF00}Radio", "[Radio Indonesia]Surabaya\n Boneyaad Radio", "Okay", "Close");
        return 1;
    }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1) {
        if(response) {
            if(listitem == 0) {
                PlayAudioStreamForPlayer(playerid, "http://49.213.21.119:8000/listen.pls");
            }
            if(listitem == 1) {
                ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "{00FF00}Radio", "Boneyaad Radio\nIbiza Global Radio\nOff radio", "Okay", "Close");
        }
    }
    return 1;
}
hope it helps +rep if i did thanks
combine sir, not add in 1 dialogs :3
try to notice,
The first dialog, next word,
, if clicked, the dialogue can move to the second
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)