SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 18/10/2015, 03:13 PM   #5031
nickdodd25
Huge Clucker
 
nickdodd25's Avatar
 
Join Date: Jan 2012
Location: Unknown
Posts: 448
Reputation: 114
Default Re: Streamer Plugin

Quote:
Originally Posted by S4D View Post
https://www.youtube.com/watch?v=4nAkcGDJbT0

PHP Code:
Streamer_ToggleAllItemUpdate(playeridtoggle)
{
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_OBJECTtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_PICKUPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_MAP_ICONtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_3D_TEXT_LABELtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_AREAtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_CPtoggle);
    
Streamer_ToggleItemUpdate(playeridSTREAMER_TYPE_RACE_CPtoggle);
    return 
1;

Just tested with your code and i see what you mean now, it seems that pickups still stream even when toggled off.

pawn Code:
Streamer_ToggleAllItemUpdate(playerid, toggle)
{
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_OBJECT, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_PICKUP, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_MAP_ICON, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_3D_TEXT_LABEL, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_AREA, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_CP, toggle);
    Streamer_ToggleItemUpdate(playerid, STREAMER_TYPE_RACE_CP, toggle);
    return 1;
}


CMD:strue(playerid,params[]) //re-enables the item update
{
    return Streamer_ToggleAllItemUpdate(playerid, true);
}
CMD:sfalse(playerid,params[]) //disables the item update
{
    return Streamer_ToggleAllItemUpdate(playerid, false);
}

So this is for sure a bug. I was able to test everything but regular checkpoints and race checkpoints, and everything else works fine with exception of the pickups.
__________________
Nick
nickdodd25 is offline   Reply With Quote
Old 18/10/2015, 06:54 PM   #5032
Daea
Big Clucker
 
Join Date: Dec 2013
Posts: 190
Reputation: 2
Default Re: Streamer Plugin

Guys, help me. When the server starts it shuts down
Code:
[21:54:09]  Loading plugin: streamer
[21:54:09] [debug] Server crashed due to an unknown error
[21:54:10] [debug] Native backtrace:
[21:54:10] [debug] #0 019f485e in ?? () from D:\Documents and Settings\\ \\\new\plugins\streamer.dll
[21:54:10] [debug] #1 019f3770 in ?? () from D:\Documents and Settings\\ \\\new\plugins\streamer.dll
[21:54:10] [debug] #2 01a04d43 in Load () from D:\Documents and Settings\\ \\\new\plugins\streamer.dll
[21:54:10] [debug] #3 0046a51b in ?? () from D:\Documents and Settings\\ \\\new\samp-server.exe
[21:54:10] [debug] #4 00c50178 in ?? ()
Windows XP
Daea is offline   Reply With Quote
Old 18/10/2015, 08:00 PM   #5033
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: Streamer Plugin

I'm just going to point out here that Incognito addressed the pickup updating earlier today already. Wait for the next version release for the fix or just go compile the source.
Crayder is offline   Reply With Quote
Old 20/10/2015, 10:30 AM   #5034
kristo
Banned
 
Join Date: Jun 2012
Location: Estonia
Posts: 352
Reputation: 179
Default Re: Streamer Plugin

Could you add E_STREAMER_EXTRA_ID_2 to the enum? I could use it to make my systems a lot more efficient. And no, I wouldn't be asking for third one in a few weeks.
kristo is offline   Reply With Quote
Old 20/10/2015, 06:25 PM   #5035
bogdyutzu
Big Clucker
 
Join Date: Nov 2011
Location: Romania, Pitesti
Posts: 121
Reputation: 5
Default Re: Streamer Plugin

Use Streamer_SetArrayData with E_STREAMER_EXTRA_ID.
bogdyutzu is offline   Reply With Quote
Old 26/10/2015, 02:27 PM   #5036
[DOG]irinel1996
High-roller
 
[DOG]irinel1996's Avatar
 
Join Date: Jan 2010
Posts: 1,469
Reputation: 288
Default Respuesta: Streamer Plugin

EDIT: replied on wrong thread.
[DOG]irinel1996 is offline   Reply With Quote
Old 29/10/2015, 08:08 PM   #5037
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,209
Reputation: 352
Default Re: Streamer Plugin

More Streamer Option
StreamerFunction.inc
AbyssMorgan is offline   Reply With Quote
Old 30/10/2015, 06:55 PM   #5038
xMaKi
Little Clucker
 
xMaKi's Avatar
 
Join Date: Oct 2015
Posts: 9
Reputation: 9
Default Re: Streamer Plugin

Quote:
Originally Posted by AbyssMorgan View Post
More Streamer Option
StreamerFunction.inc
Nice, good work! Rep +
__________________
xMaKi is offline   Reply With Quote
Old 31/10/2015, 05:51 PM   #5039
ahameed4755
Huge Clucker
 
ahameed4755's Avatar
 
Join Date: Jun 2015
Location: Earth
Posts: 217
Reputation: 12
Default Re: Streamer Plugin

nice!
__________________
No signature..
ahameed4755 is offline   Reply With Quote
Old 31/10/2015, 11:44 PM   #5040
Kyle
High-roller
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,258
Reputation: 330
Default Re: Streamer Plugin

Has this gdb crash log been caused by streamer? I think it has:

If so, how do I detect what crashed it.

http://pastebin.com/F2B4Q5ZC
Kyle is online now   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 9 21/03/2014 06:31 PM
Need 3dtextlabel Streamer And Gangzone Streamer !! Please Help . Not streamer plugin . jame42 Scripting Help 4 30/05/2012 07:33 AM
Streamer plugin 0.3d rt-2 Plugin Development 7 05/12/2011 06:17 PM
Streamer Plugin Help! ColdXX Everything and Nothing 2 21/08/2010 10:28 PM
Streamer Plugin! ColdXX Help Archive 10 18/07/2010 12:47 PM


All times are GMT. The time now is 05:51 PM.


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