looping with saving - 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: looping with saving (
/showthread.php?tid=570998)
looping with saving -
iBots - 15.04.2015
i am creating an object system but max object is 5000,i dont wanna save them using loops for all of the 5000 objects and load them like that,it will put alot of size to the amx,i need a better way...
Re: looping with saving -
fuckingcruse - 15.04.2015
Try using CreateDynamicObject
Re: looping with saving -
iBots - 15.04.2015
You didnt get it,i am using it but i dont wanna do like this i = 0; i < MAX_OBJECTS;.....because it will tkae alot of memory for loading and savig and i will have a feature to list all objects
Re: looping with saving -
BroZeus - 15.04.2015
Quote:
Originally Posted by iBots
i am creating an object system but max object is 5000,i dont wanna save them using loops for all of the 5000 objects and load them like that,it will put alot of size to the amx,i need a better way...
|
Using loop to destroy and create objects will decrease the size of amx file. Using separate lines to create each object, which would be 5000 lines, would actually increase the size of amx file. Looping is the best method, but looping is slightly slow as first object data needs to be loaded from database.