SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 11/06/2014, 08:15 AM   #11
Niko_boy
High-roller
 
Niko_boy's Avatar
 
Join Date: Aug 2010
Location: Somewhere i belong
Posts: 1,422
Reputation: 138
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Good job. I liked the use of seconds for Playback finish :P
__________________
nope[IMG]http://*******/1r0SOkH_[/IMG]
•••[CLOSED]LCS•Freeroam•DM•Stunts•••AutoArena [0.3z][No SkinShot][sixtytiger.com]Want a decent Attack Defend Gamemode?
N/A176.31.229.148:7830Get This! Attack-Defend(v2.3.1)
Niko_boy is offline   Reply With Quote
Old 11/06/2014, 11:14 AM   #12
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 2,023
Reputation: 297
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Does all ******* links work like copyrighted music?
__________________
QUITED SA-MP
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 11/06/2014, 11:18 AM   #13
iRaiDeN
Gangsta
 
iRaiDeN's Avatar
 
Join Date: Mar 2014
Location: Israel
Posts: 489
Reputation: 41
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Wow nice job, rather than explode could use sscanf faster and more convenient, the code nicely organized and programmed in a good way, very beautiful!
iRaiDeN is offline   Reply With Quote
Old 02/07/2014, 02:42 PM   #14
Reynolds
Big Clucker
 
Join Date: Jul 2010
Posts: 97
Reputation: 4
Default Respuesta: [MV]_******* | Simple but yet useful ******* streamer

Quote:
Does all ******* links work like copyrighted music?
I would suppose music which is copyrighted in the country the server is hosted in would not play.
Reynolds is offline   Reply With Quote
Old 04/07/2014, 12:12 PM   #15
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,028
Reputation: 1001
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Quote:
Originally Posted by iZN View Post
Would be great if you used sscanf. Appreciate it though, I was looking for some perfect API, I haven't heard about this API.
Quote:
Originally Posted by Jochemd View Post
y u use explode y u no use sscanf
Quote:
Originally Posted by iRaiDeN View Post
Wow nice job, rather than explode could use sscanf faster and more convenient, the code nicely organized and programmed in a good way, very beautiful!
I've searched and tested my ass off to implement sscanf. I can't find a way to let it work with sscanf. The explode function is the easiest and probably the only way.

Quote:
Originally Posted by Admigo View Post
Does all ******* links work like copyrighted music?
It should i guess. Just test it with a copyrighted video.
__________________
Mah Github. - Need host-tab ? Contact me on discord: michaelbelgium#2759

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
Michael@Belgium is offline   Reply With Quote
Old 04/07/2014, 12:47 PM   #16
doreto
High-roller
 
doreto's Avatar
 
Join Date: Aug 2010
Posts: 1,706
Reputation: 118
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Good job Michael. Here are few of mine suggestions:
  • Is*******VideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
doreto is offline   Reply With Quote
Old 07/07/2014, 10:36 PM   #17
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,028
Reputation: 1001
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Quote:
Originally Posted by doreto View Post
Good job Michael. Here are few of mine suggestions:
  • Is*******VideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
Sweet ! Nice idea's. However, GetLengthOfVideo and GetVideoTitle, do you mean from the current song that's playing or not ?
__________________
Mah Github. - Need host-tab ? Contact me on discord: michaelbelgium#2759

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
Michael@Belgium is offline   Reply With Quote
Old 08/07/2014, 06:36 PM   #18
K9IsGodly
Huge Clucker
 
K9IsGodly's Avatar
 
Join Date: Dec 2013
Location: Chicago Illinois
Posts: 243
Reputation: 16
Default Re: [MV]_******* | Simple but yet useful ******* streamer

I am getting An Error has occurred: 6 for these commands when I use them in game. They compile fine and all so I don't see what this means. Was hoping you could help.

Code:
CMD:playsong(playerid, params[])
{
    new ylink[50];
    if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/playsong [******* URL]");
    if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!");
    Play*******VideoForPlayer(playerid,ylink);
    return 1;
}

CMD:adminsong(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 6)
	{
	new ylink[50];
    	if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/adminsong [******* URL]");
    	if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!");
    	for(new i = 0; i != MAX_PLAYERS; ++i)
	{
    		if(IsPlayerConnected(i))
    		{
    	   		Play*******VideoForPlayer(i,ylink);
    		}
		return 1;
	}
	else
	{
	    SendClientMessage(playerid, -1, "You are not a high enough level administrator to use this command!");
	}
	return 1;
}
__________________


Trying to get better with Pawn

Last edited by K9IsGodly; 09/07/2014 at 04:03 AM.
K9IsGodly is offline   Reply With Quote
Old 09/07/2014, 01:16 PM   #19
Michael@Belgium
High-roller
 
Michael@Belgium's Avatar
 
Join Date: Dec 2010
Location: Belgium
Posts: 3,028
Reputation: 1001
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Quote:
Originally Posted by doreto View Post
Good job Michael. Here are few of mine suggestions:
  • Is*******VideoPlaying - self explain return true or false
  • GetLengthOfVideo - return in seconds length of video
  • GetVideoTitle - return the name of video
#updated2.0

Quote:
Originally Posted by K9IsGodly View Post
I am getting An Error has occurred: 6 for these commands when I use them in game. They compile fine and all so I don't see what this means. Was hoping you could help.
It's not your code but it's something with the API. On certain songs it does a redirect but I don't know the reason why it does that. Maybe it does check if the video has copyright or not ...

Your solution is: find another video of that song. Maybe then it'll work.
__________________
Mah Github. - Need host-tab ? Contact me on discord: michaelbelgium#2759

sO aCtIvE
You last visited: 11/01/2018 at 11:21 PM
Michael@Belgium is offline   Reply With Quote
Old 09/07/2014, 01:49 PM   #20
Battlezone
Gangsta
 
Battlezone's Avatar
 
Join Date: Aug 2013
Location: Berlin
Posts: 847
Reputation: 155
Default Re: [MV]_******* | Simple but yet useful ******* streamer

Quote:
Originally Posted by Admigo View Post
Does all ******* links work like copyrighted music?
No, it certainly won't, because ******* is directly steraming data to you, it would work only if ******* transfers data to another server located in a location where the video is not blocked, and that server streams the song to you..
__________________


Battlezone is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] ******* Streamer usrb1n Includes 111 23/03/2018 08:14 AM
[Include] ******* Streamer Nightmare[TR] Includes 29 22/04/2013 06:42 PM
******* Streamer Help sciman001 Scripting Help 20 29/06/2012 05:57 AM
need a simple object streamer luckie12 Help Archive 2 29/04/2009 04:43 PM


All times are GMT. The time now is 10:45 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.