SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 03/12/2012, 09:44 PM   #1
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,259
Reputation: 330
Default Using nodes - Optimisation required. [ CESSIL MAYBE? ]

Hi, I use a GPS system and when it passes each node it calls a function to let me know.

So I clear all the arrows previously he has passed, but because I pass around 3 nodes in 1 second it runs this code 3 times an it just can't handle it.

I tried making it delete every 3 nodes it passes running the 1 loop instead of 3 loops. But it's still no good.

Do you recommend anything for this code?

Yes, I know the loop doesn't help it at all but it needs to loop to delete the arrow in the rode. Due to this calls loads in a space of 3 seconds, over 9 times in 3 seconds it lags destroying the object.

I can't destroy just that arrow he passes as the function is too slow in calling 3 times in 1 second and doesn't catch I've passed the nodes and recognizes it as 1 passed.
Kyle is offline   Reply With Quote

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
[FilterScript] GPS System - Using nodes and Arrows. Kyle Filterscripts 18 08/10/2012 08:04 AM
Problem wih Nodes Rule111 Help Archive 0 17/05/2011 12:11 AM
Gamemode Optimisation Gigi-The-Beast Help Archive 2 23/05/2010 05:09 PM

All times are GMT. The time now is 03:14 PM.

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