[Help]Dialog not responding
#1

I made new TD, i want when click on it to show dialog for playing songs form url. I made this, but it is not reposnding IG.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_PUSTIMUZIKU)
    {
           new url = strval(inputtext);
           if(sscanf(inputtext, "i", url)) return ShowPlayerDialog(player,DIALOG_PUSTIMUZIKU,DIALOG_ STYLE_INPUT,                                     ""ZUTA"Pustanje", "Unesite URL [DIRECT LINK] Pesme", "Pusti", "Izlaz");
    {
     StopAudioStreamForPlayer(player);
      PlayAudioStreamForPlayer(player,inputtext);
    }
    }
return 1;
}
and fisrt dialog on player click on td (it isnot responding)
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw[16]) ShowPlayerDialog(playerid, DIALOG_PUSTIMUZIKU, DSI, "Music", "Unesite link pesme koju zelite da pustite u prozoru koji Vam se pojavi!\n/MUZIKA", "OK", "Izlaz" );
return 1;
}
Reply


Messages In This Thread
[Help]Dialog not responding - by cr33d - 21.01.2014, 20:33
Re: [Help]Dialog not responding - by Hansrutger - 21.01.2014, 21:19
Re: [Help]Dialog not responding - by cr33d - 21.01.2014, 21:22
Re: [Help]Dialog not responding - by Hansrutger - 21.01.2014, 23:09
Re: [Help]Dialog not responding - by PowerPC603 - 22.01.2014, 04:46
Re: [Help]Dialog not responding - by cr33d - 22.01.2014, 08:48
Re: [Help]Dialog not responding - by Hansrutger - 22.01.2014, 10:20
Re: [Help]Dialog not responding - by cr33d - 22.01.2014, 10:33
Re: [Help]Dialog not responding - by Hansrutger - 22.01.2014, 10:44
Re: [Help]Dialog not responding - by cr33d - 22.01.2014, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)