H{3}nr{1} 19 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 Čaute mám malý problém s radiem tohle je snad můj poslední help topic ale už sem zkusil vše :/ Public: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { { if(dialogid==24) { if(response) { switch(listitem) { case 0: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si drumandbass Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384"); } //________________________________________________________________________________________________________// case 1: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si funradio Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/fun128.mp3"); } //________________________________________________________________________________________________________// case 2: { SendClientMessage(playerid,0xFFFF00AA, "Naladil si si europa2sk Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://ice2.europa2.sk/fm-europa2sk-128"); } //________________________________________________________________________________________________________// case 3: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Expres Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://85.248.7.162:8000/96.mp3"); } //________________________________________________________________________________________________________// case 4: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si evropa2cz Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast3.play.cz:8000/evropa2-128.mp3"); } //________________________________________________________________________________________________________// case 5: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si frekvence 1 Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast4.play.cz/frekvence1-128.mp3"); } //________________________________________________________________________________________________________// case 6: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si impuls Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast5.play.cz/impuls128.mp3"); } //________________________________________________________________________________________________________// case 7: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Jemne melodie Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.jemnemelodie.sk:8000"); } //________________________________________________________________________________________________________// case 8: { SendClientMessage(playerid,0xFFFF00AA, "Rádio vypnute."); StopAudioStreamForPlayer(playerid); } //________________________________________________________________________________________________________// } } } } Link to comment Share on other sites More sharing options...
0 kell94_cz 7 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 24) { if(response) { switch(listitem) { case 0: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si drumandbass Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384"]http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384[/url]"); } case 1: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si funradio Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://stream.funradio.sk:8000/fun128.mp3"]http://stream.funradio.sk:8000/fun128.mp3[/url]"); } case 2: { SendClientMessage(playerid,0xFFFF00AA, "Naladil si si europa2sk Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://ice2.europa2.sk/fm-europa2sk-128"]http://ice2.europa2.sk/fm-europa2sk-128[/url]"); } case 3: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Expres Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://85.248.7.162:8000/96.mp3"]http://85.248.7.162:8000/96.mp3[/url]"); } case 4: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si evropa2cz Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://icecast3.play.cz:8000/evropa2-128.mp3"]http://icecast3.play.cz:8000/evropa2-128.mp3[/url]"); } case 5: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si frekvence 1 Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://icecast4.play.cz/frekvence1-128.mp3"]http://icecast4.play.cz/frekvence1-128.mp3[/url]"); } case 6: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si impuls Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://icecast5.play.cz/impuls128.mp3"]http://icecast5.play.cz/impuls128.mp3[/url]"); } case 7: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Jemne melodie Rádio."); PlayAudioStreamForPlayer(playerid, "[url="http://www.jemnemelodie.sk:8000"]http://www.jemnemelodie.sk:8000[/url]"); } case 8: { SendClientMessage(playerid,0xFFFF00AA, "Rádio vypnute."); StopAudioStreamForPlayer(playerid); } } } return true; } return false; } Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 27. Listopad, 2012 Author Share Odesláno: 27. Listopad, 2012 C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2128) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2133) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2138) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2143) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2148) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2153) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2158) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : warning 203: symbol is never used: "http" C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123 -- 2171) : error 010: invalid function or declaration C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123 -- 2173) : error 010: invalid function or declaration C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123 -- 2173) : fatal error 107: too many error messages on one line :( Link to comment Share on other sites More sharing options...
0 kell94_cz 7 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 V tom PlayAudioStreamForPlayer skopíruj si tam ty odkazy znova hodilo mi to do url tak si to tam dej znova akorát vymaž odkaz a nakopíruj ho tam znova. Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 27. Listopad, 2012 Author Share Odesláno: 27. Listopad, 2012 C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : error 037: invalid string (possibly non-terminated string) C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : error 029: invalid expression, assumed zero C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : error 029: invalid expression, assumed zero C:\Users\H3nr1\Desktop\MontBlanc.pwn(2123) : fatal error 107: too many error messages on one line Nrvíš co s tím ? Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 Čo tak poslať riadky tých errorov? Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 27. Listopad, 2012 Author Share Odesláno: 27. Listopad, 2012 PlayAudioStreamForPlayer(playerid, "http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384); Link to comment Share on other sites More sharing options...
0 kell94_cz 7 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 Na konci ti chybí " Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 Skús toto PlayAudioStreamForPlayer(playerid, "http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384"); Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 Alebo si siahni na uložto tie Slovenské rada.pwn Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 27. Listopad, 2012 Author Share Odesláno: 27. Listopad, 2012 nejde ... Link to comment Share on other sites More sharing options...
0 LYRIcS 88 Odesláno: 27. Listopad, 2012 Share Odesláno: 27. Listopad, 2012 #include "a_samp" public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid==24) { if(response) { switch(listitem) { case 0: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si drumandbass Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://37.157.195.10/players.php?do=flash&radio=37.157.195.10:7384"); } //________________________________________________________________________________________________________// case 1: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si funradio Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://stream.funradio.sk:8000/fun128.mp3"); } //________________________________________________________________________________________________________// case 2: { SendClientMessage(playerid,0xFFFF00AA, "Naladil si si europa2sk Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://ice2.europa2.sk/fm-europa2sk-128"); } //________________________________________________________________________________________________________// case 3: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Expres Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://85.248.7.162:8000/96.mp3"); } //________________________________________________________________________________________________________// case 4: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si evropa2cz Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast3.play.cz:8000/evropa2-128.mp3"); } //________________________________________________________________________________________________________// case 5: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si frekvence 1 Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast4.play.cz/frekvence1-128.mp3"); } //________________________________________________________________________________________________________// case 6: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si impuls Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://icecast5.play.cz/impuls128.mp3"); } //________________________________________________________________________________________________________// case 7: { SendClientMessage(playerid, 0xFFFF00AA, "Naladil si si Jemne melodie Rádio."); StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.jemnemelodie.sk:8000"); } //________________________________________________________________________________________________________// case 8: { SendClientMessage(playerid,0xFFFF00AA, "Rádio vypnute."); StopAudioStreamForPlayer(playerid); } //________________________________________________________________________________________________________// } } } return 1; } Link to comment Share on other sites More sharing options...
0 Sany 2 Odesláno: 28. Listopad, 2012 Share Odesláno: 28. Listopad, 2012 Mám jen otázku a nechce se mi zbytečně zakládat nové téma... Dá se nějak zabránit tomu aby to vypisovalo stream url ? Link to comment Share on other sites More sharing options...
0 ATomas 290 Odesláno: 8. Prosinec, 2012 Share Odesláno: 8. Prosinec, 2012 Mám jen otázku a nechce se mi zbytečně zakládat nové téma... Dá se nějak zabránit tomu aby to vypisovalo stream url ? Neda, ale kazdy hrac si to muze sam vypnout, prikaz si uz nepamatuju, ale na forum.sa-mp.com v topicu o vydani noveho clienta t otam je myslim /audiosmg Link to comment Share on other sites More sharing options...
Dotaz
H{3}nr{1} 19
Čaute mám malý problém s radiem tohle je snad můj poslední help topic ale už sem zkusil vše :/
Public:
Link to comment
Share on other sites
13 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