Radios HELP
#5

Okay, found the way, but there is problem..

Im making the command. Dialog style list.
To select a radio and then play it.

But when i type the command, it doesnt show that the command is unknown, it means that this command exists, but cannot execute it somehow.

Here is the code:
Code:
CMD:radio(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Radio:", "NJOY \n More cooming soon", "Choose", "Exit");
	return 1;
}
And OnDialogResponse:

Code:
if(dialogid == DIALOG_RADIO)
	{
	   if(response)
	   {
			if(listitem == 0)
			{
				PlayAudioStreamForPlayer(playerid, "http://46.10.150.243/njoy.mp3");
				SendClientMessage(playerid, COLOR_YELLOW, "you are listening to RADIO NJOY!");
			}
			if(listitem == 1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, "more cooming soon!");
				return 1;
			}
	    }
	}
Reply


Messages In This Thread
Radios HELP - by Lixyde - 22.03.2019, 19:12
Re: Radios HELP - by SymonClash - 22.03.2019, 20:12
Re: Radios HELP - by Lixyde - 23.03.2019, 07:46
Re: Radios HELP - by raydx - 23.03.2019, 08:04
Re: Radios HELP - by Lixyde - 23.03.2019, 08:27

Forum Jump:


Users browsing this thread: 2 Guest(s)