SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/06/2017, 08:05 PM   #5631
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 269
Reputation: 30
Default Re: Streamer Plugin

Create enum

Code:
enum myEnum
{
data_model,
...
data_string[64]
}

new object_data[myEnum];
strmid(object_data[data_string], ...);
ball is offline   Reply With Quote
Old 04/07/2017, 12:56 PM   #5632
WASD
Little Clucker
 
Join Date: Feb 2014
Posts: 17
Reputation: 1
Default Re: Streamer Plugin

delll.
WASD is offline   Reply With Quote
Old 14/07/2017, 11:40 PM   #5633
Paulice
Gangsta
 
Join Date: Jul 2017
Posts: 497
Reputation: 44
Default Re: Streamer Plugin

Will there ever be support for gang zones?
Paulice is offline   Reply With Quote
Old 05/08/2017, 07:17 PM   #5634
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 78
Reputation: 0
Default Re: Streamer Plugin

Dear Incognito, could you simplify the function 'Streamer_GetNearbyItems', I almost did not understand how it works, how to determine the number of Objects in a given position, could make it something to return a count of objects or to show an example.
Salik is offline   Reply With Quote
Old 05/08/2017, 08:11 PM   #5635
TommyB
Beta Tester
 
TommyB's Avatar
 
Join Date: Sep 2010
Location: Texas, USA.
Posts: 119
Reputation: 104
Default Re: Streamer Plugin

Quote:
Originally Posted by Salik View Post
Dear Incognito, could you simplify the function 'Streamer_GetNearbyItems', I almost did not understand how it works, how to determine the number of Objects in a given position, could make it something to return a count of objects or to show an example.

https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'.
__________________
TommyB is offline   Reply With Quote
Old 05/08/2017, 08:47 PM   #5636
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 78
Reputation: 0
Default Re: Streamer Plugin

Quote:
Originally Posted by TommyB View Post
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'.

Do you think I did not watch the wiki? If you can help me make this function, it will stupidly return 0 or 1 ...
Not just a return, to the array ...
Salik is offline   Reply With Quote
Old 06/08/2017, 02:42 PM   #5637
BeckzyBoi
High-roller
 
Join Date: Dec 2006
Posts: 1,610
Reputation: 76
Default Re: Streamer Plugin

22 commits since 2.9.1. When is 2.9.2 coming? I'm getting sick of the checkpoint bug where they don't show until you re-enter the area. I know that one of the commits fixes this. I'd have thought you'd released 2.9.2 by now so people can download it, use it, and not experience that horrific bug.
__________________
BeckzyBoi is offline   Reply With Quote
Old 07/08/2017, 02:24 PM   #5638
MrHarry
Little Clucker
 
Join Date: Jul 2013
Posts: 1
Reputation: 0
Default Re: Streamer Plugin

Quote:
Originally Posted by TommyB View Post
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'.
Woah, thanks!
MrHarry is offline   Reply With Quote
Old 07/08/2017, 02:28 PM   #5639
donsta3000
Little Clucker
 
Join Date: Aug 2012
Posts: 38
Reputation: 15
Default Re: Streamer Plugin

Very good plugin
__________________
Small County Roleplay

Feel free to ask me any questions however, I can't guarantee I'll answer!
donsta3000 is offline   Reply With Quote
Old 07/08/2017, 04:31 PM   #5640
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 TommyB View Post
https://github.com/samp-incognito/sa...GetNearbyItems
That has all the info you need. If you wish to grab the number of objects in that position after using the native, you can use 'strlen(yourarray)'.
strlen is recommended only for char arrays. I guess you could use it in that case too, but it isn't recommended.
That wiki page says that it returns 0 or 1. It actually returns the size of final items: https://github.com/samp-incognito/sa...eous.cpp#L1682 . I don't think it is limited by the "maxitems" parameter, so he could actually use
Code:
new items = Streamer_GetNearbyItems( ... );
Quote:
Originally Posted by BeckzyBoi View Post
22 commits since 2.9.1. When is 2.9.2 coming? I'm getting sick of the checkpoint bug where they don't show until you re-enter the area. I know that one of the commits fixes this. I'd have thought you'd released 2.9.2 by now so people can download it, use it, and not experience that horrific bug.
As you may know, Streamer Plugin has a crash bug probably since chunks were added:
https://github.com/samp-incognito/sa...gin/issues/205. I remember that Incognito said in one of those issues that he will release the next version when he will be sure that crash was fixed. He can't find the source of server crash. It acts weird. He made few commits to try to fix it, but with no result.
__________________


IstuntmanI 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 07:31 AM.


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