SA-MP Forums Archive
Max Objects? - 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: Max Objects? (/showthread.php?tid=372127)



Max Objects? - Luke_James - 25.08.2012

My server isn't loading any of the new mapping I upload, all the old stuff is still there. I just did an update to my mapping with some fences (about 200 extra objects) and it's only added ONE of the fences I placed, and not added anymore. Is this because there's a maximum number of objects a server can have?


Re: Max Objects? - clarencecuzz - 25.08.2012

Approximately how many objects are in your server, including the fences?

https://sampwiki.blast.hk/wiki/Limits


Re: Max Objects? - =WoR=G4M3Ov3r - 25.08.2012

Are you using a streamer ?

If not, then download Incognito's streamer, include it in your script and then change your CreateObject natives to CreateDynamicObject


Re: Max Objects? - Shetch - 25.08.2012

Yea, there is a limit.
https://sampwiki.blast.hk/wiki/Limits

Just use a streamer and you'll be fine!
Here's a really good one: http://forum.sa-mp.com/showthread.ph...light=streamer


Re: Max Objects? - Luke_James - 25.08.2012

I'm using Incognito's r78 streamer, and using an FS for the mapping. Does the FS also need to include incognitos, and have CreateDynamicObject opposed to CreateObject?


Re: Max Objects? - =WoR=G4M3Ov3r - 25.08.2012

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
I'm using Incognito's r78 streamer, and using an FS for the mapping. Does the FS also need to include incognitos, and have CreateDynamicObject opposed to CreateObject?
Yes.


Re: Max Objects? - clarencecuzz - 25.08.2012

Use http://www.convertffs.com to convert from CreateObject to CreateDynamicObject.

If you're not using CreateDynamicObject, you're not using the streamer, and therefore have a limited amount of objects.

You need to have #include <streamer> at the top of your script, if you're going to use the streamer.


Re: Max Objects? - Shetch - 25.08.2012

You have to add the include to you FS also.
And when you add a object, use CreateDynamicObject.


Re: Max Objects? - Luke_James - 25.08.2012

Done, thanks for the help. Why DynamicObject? They work just fine without.


Re: Max Objects? - Shetch - 25.08.2012

Because if you use a streamer, you are suppose to use CreateDynamicObject.
Otherwise, objects are going to start dissapearing.