I wanted to try and make some sort of arrays of tries with indexes based off of the plugin id's. Each index would then be a Trie table storing the function names. I wanted to try and create a way to track certain functions within certain plugins, but I can't use the function ids because they aren't unique, and function names can be the same in different plugins. I was wondering if anyone had any different ideas on how to approach this. Since the array would have to be the size of get_pluginsnum(), it would have to be instantiated at runtime, but the plugins that aren't used would just be left uninitialized until they are initialized (if they need to be used).
From the top of my head, it would look something like this...
Code:
new Array:myArray;
public plugin_init() {
myArray = ArrayCreate(1);
for (new i; i < get_pluginsnum(); i++) {
new Trie:myTrie = TrieCreate();
ArrayPushCell(myArray, i, myTrie);
}
}
I haven't actually tried it yet, but that's just what is in my head.
__________________