looping with saving
#1

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...
Reply
#2

Try using CreateDynamicObject
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)