matajus 0 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Čus, potřebuju poradit s radiem OnPlayerCommandText if (strcmp("/radio", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 4105, DIALOG_STYLE_LIST, "Vyber si stanici:", "Vypnout\nFajn Radio Black\nFajn Radio Club\nHelax\nDance Radio\nHipHopVibes\nEvropa 2\nFun 1 Rádio\nClubBeat", "Vybrat", "Zrušit"); return 1; } a OnDialogResponse if(dialogid == 4105) { if(response) { switch(dialogid) { case 1: { switch(listitem) { case 0: { StopAudioStreamForPlayer(playerid); } case 1: { //StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/fajnclub128.mp3"); } case 2: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/helax128.mp3"); } case 3: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/dance128.mp3"); } case 4: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/fajnblack128.mp3"); } case 5: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3"); } case 6: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/evropa2-32.aac.m3u"); } case 7: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://86.49.93.190:8000/fun1-32"); } case 8: { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/clubbeat128.mp3"); } } } } } } Nevíte někdo proč nehraje hudba? Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Mas zle linky alebo nejaky dialog s id 4105 uz pouzivas Link to comment Share on other sites More sharing options...
0 matajus 0 Odesláno: 29. Prosinec, 2011 Author Share Odesláno: 29. Prosinec, 2011 linky jsou dobre zkusil jsem tam dat 1 z NTP a tam jede a mně ne a ID dialogu mam jen tento s takym číslem ale dialog se zobrazí ale hudba pak nezačne hrát Link to comment Share on other sites More sharing options...
0 Dress 3 Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 zmen if(response) na if(response==1) Link to comment Share on other sites More sharing options...
0 matajus 0 Odesláno: 29. Prosinec, 2011 Author Share Odesláno: 29. Prosinec, 2011 nefunguje Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 29. Prosinec, 2011 Share Odesláno: 29. Prosinec, 2011 Zkus to takhle Link to comment Share on other sites More sharing options...
0 matajus 0 Odesláno: 29. Prosinec, 2011 Author Share Odesláno: 29. Prosinec, 2011 díky už to jede Link to comment Share on other sites More sharing options...
Dotaz
matajus 0
Čus, potřebuju poradit s radiem
OnPlayerCommandText
a
OnDialogResponse
Nevíte někdo proč nehraje hudba?
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now