SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/02/2016, 03:59 PM   #31
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,863
Reputation: 370
Default Re: Streamer Plugin with Vehicle Streamer

Quote:
Originally Posted by Jastak View Post
I have a question, How can I do loop for a fuel system?, as a vehicle is on, down the fuel.
Sorry for my bad English.
This should work:
Code:
for( new i = 1, j = Streamer_GetUpperBound( STREAMER_TYPE_VEHICLE ); i <= j; i ++ )
{
    if( !IsValidDynamicVehicle( i ) ) continue;

    // codes for dynamic vehicle ID i
}

But I don't recommend looping, if you have lots of vehicles it can be really really ugly.
__________________


IstuntmanI is offline   Reply With Quote
Old 03/02/2016, 04:11 PM   #32
Jastak
Huge Clucker
 
Jastak's Avatar
 
Join Date: Jan 2015
Location: Esparta
Posts: 277
Reputation: 17
Default Re: Streamer Plugin with Vehicle Streamer

So, what do you recommend ?. I worry because performance script, because if I had 1000 vehicles, would be 1000 interactions per 60 seconds. And I want a better way, is there any?


EDIT: REPORT BUG: when i'm still, the vehicles disappear and appear.
__________________
The Lag is real!

Last edited by Jastak; 03/02/2016 at 09:03 PM.
Jastak is offline   Reply With Quote
Old 04/02/2016, 11:53 AM   #33
rt-2
Huge Clucker
 
rt-2's Avatar
 
Join Date: Jun 2011
Location: Montréal, Québec, Canada
Posts: 283
Reputation: 24
Default Re: Streamer Plugin with Vehicle Streamer

I can't wait for this plugin to be stable
__________________
rt-2
My hardcore first person 1994 simulation in development:
SA Advance Roleplay
rt-2 is offline   Reply With Quote
Old 04/02/2016, 11:59 AM   #34
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,863
Reputation: 370
Default Re: Streamer Plugin with Vehicle Streamer

Quote:
Originally Posted by Jastak View Post
So, what do you recommend ?. I worry because performance script, because if I had 1000 vehicles, would be 1000 interactions per 60 seconds. And I want a better way, is there any?


EDIT: REPORT BUG: when i'm still, the vehicles disappear and appear.
Well, maybe you can find other methods, without being necessary to loop through all vehicles.

That's a well known bug.

Quote:
Originally Posted by blinkpnk View Post
I can't wait for this plugin to be stable
Me neither. :c I don't use it now because it isn't stable.
__________________


IstuntmanI is offline   Reply With Quote
Old 04/02/2016, 02:34 PM   #35
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,420
Reputation: 626
Default Re: Streamer Plugin with Vehicle Streamer

Quote:
Originally Posted by Jastak View Post
So, what do you recommend ?. I worry because performance script, because if I had 1000 vehicles, would be 1000 interactions per 60 seconds. And I want a better way, is there any?


EDIT: REPORT BUG: when i'm still, the vehicles disappear and appear.
Maybe if someone could describe how to produce this, then i would able to fix.

In my server was one point, where you go with truck with trailrr, then trailer disappeared and truck not. Lol
__________________
I don't play and have ANY interest in SA:MP anymore! Please do not ask for help, because I'm not going to reply.
kurta999 is offline   Reply With Quote
Old 04/02/2016, 05:58 PM   #36
Jastak
Huge Clucker
 
Jastak's Avatar
 
Join Date: Jan 2015
Location: Esparta
Posts: 277
Reputation: 17
Default Re: Streamer Plugin with Vehicle Streamer



That makes it all the time.
__________________
The Lag is real!
Jastak is offline   Reply With Quote
Old 04/02/2016, 06:44 PM   #37
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,420
Reputation: 626
Default Re: Streamer Plugin with Vehicle Streamer

LOL

I never had this bug, try this build:
Attached Files
File Type: rar streamer.rar (88.5 KB, 17 views)
__________________
I don't play and have ANY interest in SA:MP anymore! Please do not ask for help, because I'm not going to reply.
kurta999 is offline   Reply With Quote
Old 05/02/2016, 02:18 AM   #38
Jastak
Huge Clucker
 
Jastak's Avatar
 
Join Date: Jan 2015
Location: Esparta
Posts: 277
Reputation: 17
Default Re: Streamer Plugin with Vehicle Streamer

The problem persists. The bug exactly happens when I uploaded to a car and get me out with the function "RemovePlayerFromVehicle", i do not know if you have something to do that.
__________________
The Lag is real!
Jastak is offline   Reply With Quote
Old 05/02/2016, 04:33 AM   #39
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,412
Reputation: 1240
Default Re: Streamer Plugin with Vehicle Streamer

I forewarned Kurta this shit would be shoddy
Pottus is offline   Reply With Quote
Old 05/02/2016, 06:15 AM   #40
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,420
Reputation: 626
Default Re: Streamer Plugin with Vehicle Streamer

Quote:
Originally Posted by Jastak View Post
The problem persists. The bug exactly happens when I uploaded to a car and get me out with the function "RemovePlayerFromVehicle", i do not know if you have something to do that.
So without RemovePlayerVehicle everything works?
__________________
I don't play and have ANY interest in SA:MP anymore! Please do not ask for help, because I'm not going to reply.
kurta999 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
Streamer Plugin: CreateDynamicObject: Expecting 12 parameter(s) but found 11 With latest streamer plugin/include Bashur Scripting Help 16 16/03/2015 07:28 PM
Incognitos Streamer plugin: When player exits the vehicle; objects load? denNorske Scripting Help 3 22/09/2014 11:24 PM
[Plugin] Streamer Plugin v2.7.2 with vehicle streamer Swimor Plugin Development 86 11/08/2014 12:59 PM
[Include] Checkpoint / Area sub-streamer for incognito's streamer plugin Pottus Includes 11 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


All times are GMT. The time now is 04:08 PM.


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