[Solved] Ask about 'ArrayCreate'
i'm developing a weapon system which supports a lot of attributes to modify a weapon.
My question is: What if i create too many Arrays by using 'ArrayCreate' ? Could the server start ? How many Arrays are allowed to be created? |
Re: Ask about 'ArrayCreate'
You should explain better what are you trying to do, because your question shows that you may need a beter logic into your plugin. Give us your code or explain what atributes you have and where you would use them, and how.
You may use ArrayPushArray to store multiple datas in the same array, but if you are going to save this atributes for more weapons you should use a trie where you would use as key the weapon name. |
Re: Ask about 'ArrayCreate'
Like this. My System is to add weapons by writing file ini instead of writing sma for each weapon.
Actually. I developed it 99% completed. i just want to know if there will be problems if creating too many arrays PHP Code:
|
Re: Ask about 'ArrayCreate'
Other than memory usage, there should be no problems. But if you need to create that many CellArrays, then I think you need to redesign your plugin
|
Re: Ask about 'ArrayCreate'
WOW, this is totally crap. Use something like this instead.
Code:
And use tries, I don't know exactly what you want to do, but it seems to be a better option. TrieSetArray(trie, "weapon_name", data, sizeof data) TrieGetArray(trie, "weapon_name", data, sizeof data) |
Re: Ask about 'ArrayCreate'
Quote:
------------ There will be no problem using many arrays, use as much as you wish. |
Re: Ask about 'ArrayCreate'
Quote:
|
Re: Ask about 'ArrayCreate'
got it
|
| All times are GMT -4. The time now is 15:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.