20.04.2013, 14:22
Hello. Today I am having a problem with my dialogs.
This is the command that issues it:
This is the code that is under OnDialog thingy
But I want another dialog response, and I get a whole bunch of errors when I try. One that responds to the command I posted above. Please help
- Jason
This is the command that issues it:
Код:
CMD:sfpdlocker(playerid, params[])
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Select an Option", "First Aid Kit\nKevlar Vest\nStandard Issued Weapons\n", "Select", "Cancel");
return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==1 && response==1)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,-1,"You tune the radio station to 'Power 181'");
PlayAudioStreamForPlayer(playerid, "http://205.188.215.228:8002");
}
case 1:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Late 90's");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-lite90s.pls");
}
case 2:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Late 80's");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-lite80s.pls");
}
case 3:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Kickin' Country'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-kickincountry.pls");
}
case 4:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Highway 181'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-highway.pls");
}
case 5:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Good Time Oldies'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-goodtime.pls");
}
case 6:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Fusion Jazz'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/asx/181-fusionjazz.asx");
}
case 7:
{
SendClientMessage(playerid, -1, "You tune the radio station 'Rock 181'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-rock.pls");
}
case 8:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'The Eagle'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-eagle.pls");
}
case 9:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'The Office'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-office.pls");
}
case 10:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'True R&B");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-rnb.pls");
}
case 11:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Old School Hip Hop'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/asx/181-oldschool");
}
case 12:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'True Blues'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/asx/181-blues.asx");
}
case 13:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'The Mix'");
PlayAudioStreamForPlayer(playerid, "http://www.181.fm/stream/pls/181-themix.pls");
}
case 14:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'Gay FM'");
PlayAudioStreamForPlayer(playerid, "http://stream.gayfm.de/");
}
case 15:
{
SendClientMessage(playerid, -1, "You tune the radio station to 'idobi Radio'");
PlayAudioStreamForPlayer(playerid, "http://50.117.115.211:80");
}
case 16:
{
SendClientMessage(playerid, -1, "You tune the radio station and randomly come upon this.");
PlayAudioStreamForPlayer(playerid, "http://orbzgaming.com/RvB%20Song.mp3");
}
case 17:
{
SendClientMessage(playerid, -1, "You stop the radio.");
StopAudioStreamForPlayer(playerid);
}
}
}
return 1;
}
- Jason


