SA-MP Forums Archive
Players / Objects issue. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Players / Objects issue. (/showthread.php?tid=635712)



Players / Objects issue. - iLearner - 12.06.2017

Howdy everyone!

Recently i've been facing a problem in my server, which is, kinda very much frustrating and affecting my playerbase greatly, i'll explain the problem below:

After a few hours of server startup, all players / objects / Vehicles start disappearing and appearing again every few seconds (3-5 seconds is the interval), and at that point the server is unplayable!

- I am using streamer and most of objects are created using it (there must be kinda 10-20 objects created normally)
- I dont think cause is too many objects because i tried removing alot of objects which were there even before this thing started, it was still there.
- OnPlayerUpdate is empty (return 1)
- There are several global timers, intervals are 1 sec 3 sec... loop through all players.

Any help will be appreciated! this bug has to be fixed asap.


Re: Players / Objects issue. - Sew_Sumi - 12.06.2017

There was someone else experiencing the same issues in the past 6 months. Can't remember who...


Re: Players / Objects issue. - iLearner - 12.06.2017

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
There was someone else experiencing the same issues in the past 6 months. Can't remember who...
I've searched threads, none of them was helpful.


Re: Players / Objects issue. - iLearner - 12.06.2017

Anyone has any idea


Re: Players / Objects issue. - Pottus - 12.06.2017

Sounds like you are creating objects and not deleting them. When the issue happens use a small command to see what id your objects are up to.

Код:
CMD:ocount(playerid, arg[])
{
	printf("There are %i objects currently created", Streamer_CountItems(STREAMER_TYPE_OBJECT, 1);
	return 1;
}



Re: Players / Objects issue. - iLearner - 12.06.2017

7314 objects


Re: Players / Objects issue. - Pottus - 13.06.2017

Okay, is this issue server-wide? Or is it isolated to certain areas? We may have to run the profiler plugin and see if there is any functions that are being excessively called then.


Re: Players / Objects issue. - iLearner - 13.06.2017

I've ran profiler, and yep its not restricted to any area.


Re: Players / Objects issue. - Abagail - 13.06.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
I've ran profiler, and yep its not restricted to any area.
Post the results you get from the profiler plugin.


Re: Players / Objects issue. - iLearner - 13.06.2017

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Post the results you get from the profiler plugin.
Its a HTML file you know, and I doubt someone will want to read all the file.. anyway i'll uplaod it asap.

Bolex_: Yep, for everyone.