Youtube Zenék

Indította Dead, 2011. december 10. - 14:31:13

Előző téma - Következő téma

Dead

Csá
Ezt Alkottam ma reggel :D
URL-eket lehet betenni vele youtuberol és hallgatni õket :D
Szükséges inc-k
[pawn]#include <youtube>
#include <zcmd>[/pawn]
youtube.inc : http://forum.sa-mp.com/showthread.php?t=291288\" rel=\"external nofollow\">http://forum.sa-mp.com/showthread.php?t=291288
YOUTUBE ZENÉT ÀT KELL KONVERTÁLNI!! www.youtube-mp3.org -al
FS:
[pawn]
#include <a_samp>
#include <zcmd>
#include <youtube>
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define DIALOG_1 (1)
#pragma tabsize 0
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Youtube Streamer+MP3 by DeaD\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
//SendClientMessage(playerid,COLOR_LIGHTGREEN,\"A Szerveren Van Youtube Rádió\");
return 1;
}
CMD:mp3(playerid, params[])
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,\"...\");
ShowPlayerDialog(playerid, DIALOG_1, DIALOG_STYLE_LIST, \"{FFFF00}Youtube Player By DeaD\",\"Don Omar-Danza Koduro Remix\\nLucenzo-Baila Morena Remix\\nPitbull-Rain Over Me Remix\\nAdele - Rolling In The Deep (Jamie xx Shuffle)\\n{FFFFFF}LMFAO - Sexy And I Know It Remix\\nLMFAO - Party Rock Anthem 2011 ( Club Remix ) By DJ Veleno\\nLMFAO ft Natalia Kills - Champagne Showers (JaySanity Electro Remix)\\n13 Boadicea [Evil Nine Remix]\\nJavi Mula ft Re-Leese - Jet Set (Extended Mix)\\nSTOP\",\"Ok\",\"Kilép\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_1)
    {
       if(response)
        {
                 switch(listitem)
              {
                      case 0:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                    case 1:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                  case 2:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                  case 3:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                  case 4:
                    {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                  case 5:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
               case 6:
               {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                     case 7:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                     case 8:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"
);
                    }
                     case 9:
                  {
               YoutubeStopStream(playerid);
                  }
              }
   }
}
    return 1;
}[/pawn]
A Linkek Helyére Teheted Be A Sajátjaidat
addig mész ameddig van türelmed :D :D
Frissítve! Scriptet javítottam! Legközelebb ne nekem kelljen!

krissz96

én nem irtam át benne semmit de valamiért error ozik :S
[pawn]C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\pawno\\include\\youtube.inc(28) : error 017: undefined symbol \"PlayAudioStreamForPlayer\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(36) : error 001: expected token: \")\", but found \"&\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(36) : error 001: expected token: \";\", but found \"&\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(40) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(43) : error 025: function heading differs from prototype
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(43) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(45) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(47) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(49) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(51) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(53) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(55) : error 021: symbol already defined: \"YoutubeStopStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(56) : error 021: symbol already defined: \"YoutubeStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(58) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(60) : error 021: symbol already defined: \"YoutubeStopStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(61) : error 021: symbol already defined: \"YoutubeStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(63) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(65) : error 021: symbol already defined: \"YoutubeStopStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(66) : error 021: symbol already defined: \"YoutubeStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(68) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(70) : error 021: symbol already defined: \"YoutubeStopStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(71) : error 021: symbol already defined: \"YoutubeStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(73) : error 010: invalid function or declaration
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(75) : error 021: symbol already defined: \"YoutubeStopStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(76) : error 021: symbol already defined: \"YoutubeStream\"
C:\\Documents and Settings\\Krisztián\\Asztal\\Új mappa\\filterscripts\\radio.pwn(78) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
26 Errors.[/pawn]

CM_Punk

meg van minden inc hozzá ? 0.3dn jáccol ? frissitetted a pawnod ??
Javaslat: DIALOG_STLYE_INPUT al csináld meg mert azzal sokkal jobb lenne

Norby

Valahol kitöröltél egy ilyet : { vagy }
Nézd meg ! :)

haha3223

Alapból írja ki.. Én csak bemásoltam üres pawnoba lefuttattam (minden inc megvan) és nekem is ez jött ki.

Norby

Most látom hogy ez teljesen rossz mert switch(dialogid) ?? ez switch(listitem) és az elejére az if(dialogid == stb...) :)
Ez biztos jó :
 
#include <a_samp>
#include <zcmd>
#include <youtube>
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define DIALOG_1 (1)
#pragma tabsize 0
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Youtube Streamer+MP3 by DeaD\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
 
public OnPlayerConnect(playerid)
{
//SendClientMessage(playerid,COLOR_LIGHTGREEN,\"A Szerveren Van Youtube Rádió\");
return 1;
}
CMD:mp3(playerid, params[])
{
SendClientMessage(playerid,COLOR_LIGHTGREEN,\"...\");
ShowPlayerDialog(playerid, DIALOG_1, DIALOG_STYLE_LIST, \"{FFFF00}Youtube Player By DeaD\",\"Don Omar-Danza Koduro Remix\\nLucenzo-Baila Morena Remix\\nPitbull-Rain Over Me Remix\\nAdele - Rolling In The Deep (Jamie xx Shuffle)\\n{FFFFFF}LMFAO - Sexy And I Know It Remix\\nLMFAO - Party Rock Anthem 2011 ( Club Remix ) By DJ Veleno\\nLMFAO ft Natalia Kills - Champagne Showers (JaySanity Electro Remix)\\n13 Boadicea [Evil Nine Remix]\\nJavi Mula ft Re-Leese - Jet Set (Extended Mix)\\nSTOP\",\"Ok\",\"Kilép\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_1)
    {
       if(response)
        {
                 switch(listitem)
              {
                      case 0:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=aZgwjc-Ndw4\");
                    }
                    case 1:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=9lHS9pS-4vA\");
                    }
                  case 2:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=LLl0A_ELHP0\");
                    }
                  case 3:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=UjiswvTXdzA&ob=av3e\");
                    }
                  case 4:
                    {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=64AGNyOHsN8\");
                    }
                  case 5:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=7Cq-hp7YyrI\");
                    }
               case 6:
               {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=KsKhBD_yNXU\");
                    }
                     case 7:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=SVLQetvRsW4\");
                    }
                     case 8:
                  {
                   YoutubeStopStream(playerid);
                    YoutubeStream(playerid,\"http://www.youtube.com/watch?v=kea3GHno75U&feature=related\");
                    }
                     case 9:
                  {
            YoutubeStopStream(playerid);
                  }
              }
}
}
    return 1;
}

Dead

Kösz a javítást
legközelebb nem fordul elõ :$

Norby

Idézetet írta: Dead date=1323700264\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"14165\" data-ipsquote-contentclass=\"forums_TopicKösz a javítást
legközelebb nem fordul elõ :$
 
nm..
Remélem :D

Dead

Amugy nekem error es warnmentes volt es ment is ;)
De megegyszerkosz:D

Norby

Idézetet írta: Dead date=1323716216\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"14165\" data-ipsquote-contentclass=\"forums_TopicAmugy nekem error es warnmentes volt es ment is ;)
De megegyszerkosz:D
 
Azért volt warn és error mentes mert definálva volt a Filetrscript és olyankor nem ír se hibát se errort amikor irsz valamit akkor ez ne legyen benne:
if defined filterscripts
:)

Gang[St]e[R]

#10
Nálam semmi sem szólal meg, ha youtube linket adok, ha máshonnan van a link minden szól, de ha youtube, akkor se ezzel az inc-el, se PlayPlayerSound függvényel nem megy, de ha a link nem youtubes, akkor megy.
E: Visszavonom, a youtube rossz, mindenre hiba üzenetet ír :S

Dead


BenceDaPro

Még nem próbáltam,a gépre letöltöm majd,csak annyi,hogyha a linket berakom akkor nem megy?
És ha átkonvertálom mp3ba?Hova rakjam be az átkonvertált mp3at,melyik mappába?

skyLine

Feltöltöd a tárhelyedre és beírod oda a linkjét.

DJтoυcн

köszi ezt kerestem! mentha + ! :)