CMD:radio(playerid,params[]){ ShowPlayerDialog(playerid, PSONG_DIALOG, DIALOG_STYLE_LIST, \"Rádió\", \"RiseFM\\nRádió 1\\nNeoFM\\nClassFM\\nRádió Max\\nRádió FM95\\n\", \"OK\", \"STOP\"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {if(dialogid == PSONG_DIALOG) { TogglePlayerControllable(playerid, true); if(response == 1) { switch(listitem) { case 0: { SendClientMessage(playerid, COLOR_GREEN, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\"); } case 1: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió 1\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/28_radio1.m3u\"); } case 2: { SendClientMessage(playerid, COLOR_GREEN, \"NeoFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u\"); } case 3: { SendClientMessage(playerid, COLOR_GREEN, \"ClassFM\" ); PlayAudioStreamForPlayer(playerid, \"http://91.82.85.71:7116/CLASS_FM.m3u\"); } case 4: { SendClientMessage(playerid, COLOR_GREEN, \"RádióMax\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/40_maxfm.m3u\"); } case 6: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió FM95\" ); PlayAudioStreamForPlayer(playerid, \"http://www.radiofm95.hu/fm95.m3u\"); } } } return 1; } return 0; }
if(!response) return SendClientMesage(playerid, -1, \"Rádió kikapcsolva!\"), StopAudioStreamForPlayer(playerid);
if(dialogid == PSONG_DIALOG) {TogglePlayerControllable(playerid, true);if(!response) return SendClientMesage(playerid, -1, \"Rádió kikapcsolva!\"), StopAudioStreamForPlayer(playerid);switch(listitem) {case 0: { SendClientMessage(playerid, COLOR_GREEN, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\");}case 1: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió 1\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/28_radio1.m3u\");}case 2: { SendClientMessage(playerid, COLOR_GREEN, \"NeoFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u\");}case 3: { SendClientMessage(playerid, COLOR_GREEN, \"ClassFM\" ); PlayAudioStreamForPlayer(playerid, \"http://91.82.85.71:7116/CLASS_FM.m3u\");}case 4: { SendClientMessage(playerid, COLOR_GREEN, \"RádióMax\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/40_maxfm.m3u\");}case 5: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió FM95\" ); PlayAudioStreamForPlayer(playerid, \"http://www.radiofm95.hu/fm95.m3u\");}}return 1;}
D:\\C\\Rics_CUCCAI\\_MesterMC sa-mp\\FTP\\gamemodes\\lvdm.pwn(987) : error 010: invalid function or declaration
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == PSONG_DIALOG) {TogglePlayerControllable(playerid, true);if(!response) return SendClientMessage(playerid, -1, \"Rádió kikapcsolva!\"), StopAudioStreamForPlayer(playerid);switch(listitem) { case 0: { SendClientMessage(playerid, COLOR_GREEN, \"RiseFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.risefm.hu/inc/balaton_playlist.m3u\"); } case 1: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió 1\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/28_radio1.m3u\"); } case 2: { SendClientMessage(playerid, COLOR_GREEN, \"NeoFM\" ); PlayAudioStreamForPlayer(playerid, \"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u\"); } case 3: { SendClientMessage(playerid, COLOR_GREEN, \"ClassFM\" ); PlayAudioStreamForPlayer(playerid, \"http://91.82.85.71:7116/CLASS_FM.m3u\"); } case 4: { SendClientMessage(playerid, COLOR_GREEN, \"RádióMax\" ); PlayAudioStreamForPlayer(playerid, \"http://hunradio.bplaced.net/40_maxfm.m3u\"); } case 5: { SendClientMessage(playerid, COLOR_GREEN, \"Rádió FM95\" ); PlayAudioStreamForPlayer(playerid, \"http://www.radiofm95.hu/fm95.m3u\"); }}return 1;}return 0;}