AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bug with TrieSetArray ? (https://forums.alliedmods.net/showthread.php?t=133559)

aaarnas 07-26-2010 16:35

Bug with TrieSetArray ?
 
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_idid) {
    
    new 
entity_string[10]
    
num_to_str(entity_ident_stringcharsmax(ent_string))
    
TrieSetArray(g_weapons_ammo_handleentity_stringp_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.

ConnorMcLeod 07-26-2010 16:43

Re: Bug with TrieSetArray ?
 
https://bugs.alliedmods.net/show_bug.cgi?id=3816

http://forums.alliedmods.net/showthr...10#post1020310

aaarnas 07-26-2010 17:01

Re: Bug with TrieSetArray ?
 
Thanks. Going to try.


All times are GMT -4. The time now is 00:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.