Szerző Téma: Rádió  (Megtekintve 1903 alkalommal)

Rádió
« Dátum: 2012. Február 10. - 14:12:46 »
0 Show voters
Sziasztok! Egy olyan scriptet szeretnék kérni hogy ha valaki beirja hogy /radio akkor bejön egy lista amin vannak rádió adó nevek és ha rámegy akkor elinduljon a rádió! Pontosabban ezek a rádiók kellenek: Neo FM, City Rádió(ha meglehet szerezni a halgatási url jét!) , Class FM!
És a végén legyen egy Rádió Kikapcsol irás amivel ki lehet kapcsolni a rádiót! Kérlek ZCMD vel csináljátok! Elõre is köszi!

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Rádió
« Válasz #1 Dátum: 2012. Február 10. - 15:53:42 »
0 Show voters
http://sampforum.hu/index.php?topic=18349.msg200969#msg200969
rádiókat nemtok :D
 

Stop parancs:
COMMAND:player(playerid, params[])
{
    StopAudioStreamForPlayer(playerid); // ha minden igaz:D
    return true;
}

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Rádió
« Válasz #2 Dátum: 2012. Február 11. - 23:55:31 »
0 Show voters

Nem elérhető NiKe

Rádió
« Válasz #3 Dátum: 2012. Február 12. - 17:57:36 »
0 Show voters
Itt van egy radio 4 radio van benne
[pawn]#include a_samp
#include zcmd
#define Radio_Dialog    678                     //Dialog ID
#define Msg(%0)         SendClientMessage(playerid, -1, %0)
CMD:radio(playerid) ShowPlayerDialog(playerid,Radio_Dialog,DIALOG_STYLE_LIST,\"Rádió\",\"Neo FM\\nClass FM\\nRádió 1\\nDream Rádió\",\"Hallgat\", \"Kikapcsol\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if(dialogid == Radio_Dialog) {
        if(!response) return StopAudioStreamForPlayer(playerid), Msg(\"{FFFF00}Sikeresen kikapcsoltad a {FFFFFF}rádiót{FFFF00}.\");
        if(listitem == 0) PlayAudioStreamForPlayer(playerid, \"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Neo FM{FFFF00}-et hallgatod.\");
        if(listitem == 1) PlayAudioStreamForPlayer(playerid, \"http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Class FM{FFFF00}-et hallgatod.\");
        if(listitem == 2) PlayAudioStreamForPlayer(playerid, \"http://195.70.35.172:8000/radio1.mp3\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Rádió 1{FFFF00}-et hallgatod.\");
        if(listitem == 3) PlayAudioStreamForPlayer(playerid, \"http://stream.dream-radio.eu:8100/listen.pls\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Deram Rádiót{FFFF00}-t hallgatod.\");
    }
    return 1;
}
[/pawn]

Rádió
« Válasz #4 Dátum: 2012. Február 13. - 06:29:04 »
0 Show voters
filterscripts\\radio.pwn(6) : error 025: function heading differs from prototype
filterscripts\\radio.pwn(6) : error 029: invalid expression, assumed zero
filterscripts\\radio.pwn(7) : error 010: invalid function or declaration
\\filterscripts\\radio.pwn(8) : error 010: invalid function or declaration
filterscripts\\radio.pwn(9) : error 010: invalid function or declaration
filterscripts\\radio.pwn(10) : error 010: invalid function or declaration
filterscripts\\radio.pwn(11) : error 010: invalid function or declaration
filterscripts\\radio.pwn(12) : error 010: invalid function or declaration
filterscripts\\radio.pwn(14) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
9 Errors.

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Rádió
« Válasz #5 Dátum: 2012. Február 13. - 14:27:30 »
0 Show voters
#include a_samp
#include zcmd
#define Radio_Dialog    678                     //Dialog ID
#define Msg(%0)         SendClientMessage(playerid, -1, %0)
CMD:radio(playerid) ShowPlayerDialog(playerid,Radio_Dialog,DIALOG_STYLE_LIST,\"Rádió\",\"Neo FM\\nClass FM\\nRádió 1\\nDream Rádió\",\"Hallgat\", \"Kikapcsol\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if(dialogid == Radio_Dialog) {
        if(!response) return StopAudioStreamForPlayer(playerid), Msg(\"{FFFF00}Sikeresen kikapcsoltad a {FFFFFF}rádiót{FFFF00}.\");
        if(listitem == 0) PlayAudioStreamForPlayer(playerid, \"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Neo FM{FFFF00}-et hallgatod.\");
        if(listitem == 1) PlayAudioStreamForPlayer(playerid, \"http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Class FM{FFFF00}-et hallgatod.\");
        if(listitem == 2) PlayAudioStreamForPlayer(playerid, \"http://195.70.35.172:8000/radio1.mp3\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Rádió 1{FFFF00}-et hallgatod.\");
        if(listitem == 3) PlayAudioStreamForPlayer(playerid, \"http://stream.dream-radio.eu:8100/listen.pls\"), Msg(\"{FFFF00}Jelenleg a {FFFFFF}Deram Rádiót{FFFF00}-t hallgatod.\");
    }
    return 1;
}

 
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
mivel:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { //ebben
[] ezt erre : [] átkell írni :D
E: és ha  nem [pawn]pawn,/pawn[/pawn] ba teszitek hanem
code,/code

 ba akkor jó lesz
« Utoljára szerkesztve: 2012. Február 13. - 14:29:02 írta Dead »

Rádió
« Válasz #6 Dátum: 2012. Február 13. - 15:19:24 »
0 Show voters
D:\\Users\\Patrick\\Desktop\\[HUN]Kamionosok és Rendõrök\\filterscripts\\radio.pwn(8) : error 017: undefined symbol \"StopAudioStreamForPlayer\"
D:\\Users\\Patrick\\Desktop\\[HUN]Kamionosok és Rendõrök\\filterscripts\\radio.pwn(9) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Users\\Patrick\\Desktop\\[HUN]Kamionosok és Rendõrök\\filterscripts\\radio.pwn(10) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Users\\Patrick\\Desktop\\[HUN]Kamionosok és Rendõrök\\filterscripts\\radio.pwn(11) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
D:\\Users\\Patrick\\Desktop\\[HUN]Kamionosok és Rendõrök\\filterscripts\\radio.pwn(12) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
5 Errors.

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Rádió
« Válasz #7 Dátum: 2012. Február 13. - 15:31:09 »
0 Show voters
0.3d-s függvénykönyvtár kell hozzá.

Rádió
« Válasz #8 Dátum: 2012. Február 13. - 15:31:29 »
0 Show voters
frisidsd a pawnot d-re

Rádió
« Válasz #9 Dátum: 2012. Február 13. - 15:39:37 »
0 Show voters
oks megpróbálom

Dupla hozzászólás automatikusan összefûzve. ( 2012. Február 13. - 15:42:06 )

off ezt irja ki : Failed to set data for \" \" ezt irja ki mikor elinditanám
« Utoljára szerkesztve: 2012. Február 13. - 15:42:06 írta Zalakaka45 »

Nem elérhető Sheet

  • 1508
  • Támogató
    • Profil megtekintése
Rádió
« Válasz #10 Dátum: 2012. Február 13. - 16:38:19 »
0 Show voters
Idézetet írta: Zalakaka45 date=1329143977\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"16825\" data-ipsquote-contentclass=\"forums_Topic
oks megpróbálom

Dupla hozzászólás automatikusan összefûzve. ( 2012. Február 13. - 15:42:06 )

off ezt irja ki : Failed to set data for \" \" ezt irja ki mikor elinditanám
 
Gondolom windows 7. Jobb klikk, futtatás rendszergazdaként

Rádió
« Válasz #11 Dátum: 2012. Február 14. - 01:19:06 »
0 Show voters
\"PlayAudioStreamForPlayer\" szerintem ezt nem ismeri.. nem kell beírni ezt még valahova?

Rádió
« Válasz #12 Dátum: 2012. Február 14. - 14:50:50 »
0 Show voters
Idézetet írta: N@rbirock date=1329143489\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"16825\" data-ipsquote-contentclass=\"forums_Topic
frisidsd a pawnot d-re
 

Nem elérhető skyLine

  • Globális moderátor
  • 2171
  • 2020
  • Vaterán
    • Profil megtekintése
Rádió
« Válasz #13 Dátum: 2012. Február 15. - 18:36:27 »
0 Show voters
City nincs benne...
 
#include <a_samp>
#include <zcmd>
#define CARRADIO 200
#define COLOR_BLUE                0x0000FFAA
 
CMD:radio(playerid, params[]) {
    ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, \"{09ff00}Autó Rádiók\", \"{0019fc}NeoFM\\n{FF0000}MixRadio\\n{FF00FF}DiscoShit\\n{00FF00}ClassFM\\n{0019fc}DJ\\n{00FFFF}Rock\\n{1E90FF}Hardcore\\nRádió1 \\n{FFFF00}STOP\", \"Választ\", \"Mégse\");
return 1;
}
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 200)
{
if(response == 1)
{
   switch(listitem)
   {
                case 0:  PlayAudioStreamForPlayer(playerid,\"http://91.82.85.41:8080/;stream\");
                case 1:  PlayAudioStreamForPlayer(playerid,\"http://savetofile.net:8450/;stream\");
                case 2:  PlayAudioStreamForPlayer(playerid,\"http://212.108.220.144:1039/stream.mp3\");
                case 3:  PlayAudioStreamForPlayer(playerid,\"http://91.82.85.41:9216/;stream\");
                case 4:  PlayAudioStreamForPlayer(playerid,\"http://streaming.virtualpro.hu:9080/;stream\");
                case 5:  PlayAudioStreamForPlayer(playerid,\"http://94.199.181.124:8800/rockvilag2\");
                case 6:  PlayAudioStreamForPlayer(playerid,\"http://shoutcast.rotterdamterror.com:8390/\");
                case 7:  PlayAudioStreamForPlayer(playerid,\"http://195.70.35.172:8000/radio1.mp3.m3u\");
                case 8:  StopAudioStreamForPlayer(playerid);
   }
}
else
{
    SendClientMessage(playerid, 0xF97804FF, \"Kiléptél menüböl!\");
}
}
return 1;
}

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
Rádió
« Válasz #14 Dátum: 2012. Február 18. - 12:47:42 »
0 Show voters
Szia!
Itt a 0.3d-s a_samp.inc:
Tedd be a pawno/includes mappába és a szervered/includes mappába! ;)
http://solidfiles.com/d/785764c42a/
Elvileg jónak kell lennie!
Remélem segítettem! ;) :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal