Raised This Month: $ Target: $400
 0% 

Bug with TrieSetArray ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 07-26-2010 , 16:35   Bug with TrieSetArray ?
Reply With Quote #1

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.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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