18.05.2013, 19:12
The second dialog doesn't open after i confirm it in the first dialog, I got no warnings and errors.
If someone can tell me the problem thank you for that
If someone can tell me the problem thank you for that
pawn Код:
CMD:radio(playerid,params[])
{
new Radio[1024];
format(Radio, sizeof(Radio), "{00FF00}Enter URL");
ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Stream your own radio:", Radio, "Confirm", "Close");
return 1;
}
pawn Код:
if(dialogid == 9997)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOG_RADIOURL, DIALOG_STYLE_INPUT, "{FFFFFF}Enter Station URL:","Paste a radio stream URL:", "Confirm", "Close");
}
}
}
if(dialogid == 9998)
{
if(response)
{
if(strlen(inputtext) > 0)
{
PlayAudioStreamForPlayer(playerid, inputtext);
}
else
{
SendClientMessage(playerid,RED,"Not Valid");
}
}
}