Hello. I've first time used a celltrie, and it seems everything clear, but I having one strange issue.
There is how I used them:
PHP Code:
new Trie:g_weapons_ammo_handle
new p_ammo[33][2]
public plugin_init() {
g_weapons_ammo_handle = TrieCreate()
}
public some_function(entity_id, id) {
new entity_string[10]
num_to_str(entity_id, ent_string, charsmax(ent_string))
TrieSetArray(g_weapons_ammo_handle, entity_string, p_ammo[id], 2)
}
public plugin_end()
TrieDestroy(g_weapons_ammo_handle)
The problem is with TrieSetArray native. I'm getting thease errors, then plugin tries to launch TrieSetArray native. Handle is created (1).
Code:
L 07/26/2010 - 23:13:07: Invalid trie handle provided (1)
L 07/26/2010 - 23:13:07: [AMXX] Displaying debug trace (plugin "plugin.amxx")
L 07/26/2010 - 23:13:07: [AMXX] Run time error 10: native error (native "TrieSetArray")
If I using TrieSetCell - it works fine, so I'm a little confused.
__________________