SA-MP Forums Archive
Help me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me (/showthread.php?tid=591374)



Help me - anassmaroc - 11.10.2015

i've Create this ******* Play Music But i can't heart nothing Please help me

PHP код:
#define DIALOG_MUSIC 280 
PHP код:
    if(dialogid == DIALOG_MUSIC)
    {
                if(!
response) return 1;
                if(!
strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_MUSIC,DIALOG_STYLE_INPUT,"PlayTube by iRaiDeN""Please input the URL of the song you want (Example: wwww.youtube.com/watch?v=VID Change the VID!)","Play","Cancel");
                if(
strfind(inputtext,"www.*******.com",true) == -1) return ShowPlayerDialog(playerid,DIALOG_MUSIC,DIALOG_STYLE_INPUT,"PlayTube""Please input the URL of the song you want (Example: wwww.youtube.com/watch?v=VID Change the VID!)","Play","Cancel");
                new 
localURL[128];
                
strmid(localURL,inputtext,strfind(inputtext"v=")+2,strfind(inputtext"v=")+19);
                new 
localString[128];
                
format(localString128"http://*******InMP3.com/fetch/?video=%s",localURL);
                for(new 
i!= MAX_PLAYERSi++) PlayAudioStreamForPlayer(i,localString);
                return 
1;
    } 
PHP код:
CMD:ytplay(playeridparams[])
{
    
ShowPlayerDialog(playerid,DIALOG_MUSIC,DIALOG_STYLE_INPUT,"PlayTube by iRaiDeN""Please input the URL of the song you want (Example: wwww.youtube.com/watch?v=VID Change the VID!)","Play","Cancel");
    return 
1;
}
CMD:ytstop(playeridparams[])
{
    
StopAudioStreamForPlayer(playerid);
    return 
1;

Help me +rep and Sry For My bad english


Re: Help me - Alex Magaсa - 11.10.2015

I remember ******* Filterscript was supported in 0.3b only. I'm 100% you are wasting your time in a script that is not supported anymore.


Re: Help me - Morpheine - 11.10.2015

They aren't full working ******* music streamer includes / filterscrits, so don't wasting your time searching for this.