SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 14/02/2017, 09:20 PM   #5571
PrO.GameR
Gangsta
 
PrO.GameR's Avatar
 
Join Date: Oct 2012
Posts: 739
Reputation: 121
Default Re: Streamer Plugin

Quote:
Originally Posted by AbyssMorgan View Post
E_STREAMER_EXTRA_ID is integer value
Quote:
Originally Posted by Sanady View Post
How it can have any type? So far I know that ID is number, I haven`t seen that ID in SA-MP are letters. Maybe I am wrong but that is what I know.
It is an integer value (it's a simply part of an enum for streamer to recognize), but it can be used to access whatever type of data you've set it to, here's a guide for you, adapt it to use it with setting array data.
http://forum.sa-mp.com/showthread.php?t=611692
I do encourage you to use it and I do encourage you to use it to the fullest, I have a whole system around Set n Get ArrayData.
__________________
Blueberry Prison Roleplay will be back soon!
Follow the forums for more information about opening day.

Forums
PrO.GameR is offline   Reply With Quote
Old 15/02/2017, 08:28 PM   #5572
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 224
Reputation: 33
Default Re: Streamer Plugin

Quote:
Originally Posted by Lordzy View Post
You can use Streamer_GetNearbyItems to get all the near by items streamed.
Code:
native Streamer_GetNearbyItems(Float:x, Float:y, Float:z, type, STREAMER_ALL_TAGS items[], maxitems = sizeof items, Float:range = 300.0);

Usage example:
Code:
const 
    MAX_OBJECTS_ON_RANGE = 150,
    Float:MAX_VISIBLE_RANGE = 250.0
;
new streamerObjectArray[MAX_OBJECTS_ON_RANGE] = {-1, ...};

//To hold all the objects visible on a range.
new
    Float:fX, Float:fY, Float:fZ;
GetPlayerPos(playerid, fX, fY, fZ);
Streamer_GetNearbyItems(fX, fY, fZ, STREAMER_TYPE_OBJECT, streamerObjectArray, sizeof(streamerObjectArray), MAX_VISIBLE_RANGE);

//streamerObjectArray now holds the ids of visible objects of "playerid".

for(new i = 0; streamerObjectArray[i] != -1; i++) //Loop through
Uhmm... where did you find that function? I downloaded the latest streamer and it isn't there
wallee is offline   Reply With Quote
Old 15/02/2017, 08:30 PM   #5573
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,857
Reputation: 569
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
Uhmm... where did you find that function? I downloaded the latest streamer and it isn't there
Eh, it most definitely is.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 15/02/2017, 08:36 PM   #5574
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 224
Reputation: 33
Default Re: Streamer Plugin

Quote:
Originally Posted by Crayder View Post
Eh, it most definitely is.
No?

wallee is offline   Reply With Quote
Old 15/02/2017, 08:53 PM   #5575
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,857
Reputation: 569
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
No?

Perhaps you should try downloading the latest version then? You'll have to compile it of course, but it most definitely is there.

@incognito... Perhaps it's time for a release? There's been a lot of stuff added in the past 8 months!
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 15/02/2017, 08:56 PM   #5576
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 224
Reputation: 33
Default Re: Streamer Plugin

Quote:
Originally Posted by Crayder View Post
Perhaps you should try downloading the latest version then? You'll have to compile it of course, but it most definitely is there.

@incognito... Perhaps it's time for a release? There's been a lot of stuff added in the past 8 months!
i don't know how to do that so no fancy function for me

@Crayder vbulletin doesnt support mentions heh
wallee is offline   Reply With Quote
Old 15/02/2017, 09:22 PM   #5577
Jeroen52
Gangsta
 
Jeroen52's Avatar
 
Join Date: Oct 2008
Location: The Netherlands
Posts: 803
Reputation: 62
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
i don't know how to do that so no fancy function for me

@Crayder vbulletin doesnt support mentions heh
On what type of OS do you run your SAMP server? Perhaps someone will be able to compile it for you.
__________________
Jeroen52 is offline   Reply With Quote
Old 16/02/2017, 01:19 AM   #5578
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,878
Reputation: 366
Default Re: Streamer Plugin

Quote:
Originally Posted by wallee View Post
i don't know how to do that so no fancy function for me

@Crayder vbulletin doesnt support mentions heh
I don't think it was tested well, but here you go, Windows and Linux: https://www.solidfiles.com/v/ZapVLn3pBW7nz . If you find any bug please report on GitHub.

I bet he knows that already.
__________________


IstuntmanI is offline   Reply With Quote
Old 19/02/2017, 06:45 PM   #5579
Shetch
Gangsta
 
Shetch's Avatar
 
Join Date: Feb 2011
Posts: 527
Reputation: 40
Default Re: Streamer Plugin

Just ran into a problem with the plugin not loading with x64 Redistributable Package on x64 system. Download and install x86 version of the Redistributable Package and all is well.
__________________
Shetch is offline   Reply With Quote
Old 25/02/2017, 10:41 PM   #5580
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 224
Reputation: 33
Default Re: Streamer Plugin

Quote:
Originally Posted by IstuntmanI View Post
I don't think it was tested well, but here you go, Windows and Linux: https://www.solidfiles.com/v/ZapVLn3pBW7nz . If you find any bug please report on GitHub.

I bet he knows that already.
Thank you.
wallee 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] Checkpoint / Area sub-streamer for incognito's streamer plugin Pottus Includes 11 21/03/2014 07:31 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 08:33 AM
Streamer plugin 0.3d rt-2 Plugin Development 7 05/12/2011 07:17 PM
Streamer Plugin Help! ColdXX Everything and Nothing 2 21/08/2010 11:28 PM
Streamer Plugin! ColdXX Help Archive 10 18/07/2010 01:47 PM


All times are GMT. The time now is 11:01 AM.


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