Raised This Month: $ Target: $400
 0% 

Using trie


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 11-13-2011 , 11:28   Using trie
Reply With Quote #1

i am trying to use a Trie for my first time and this what i did :
PHP Code:
#include <amxmodx>

#define MAX_BANNED_PLAYERS 32
new Trie:blocked_id

public plugin_init()
{
    
blocked_id TrieCreate()
    new 
filebanned_player[MAX_BANNED_PLAYERS], key[128]
    
file fopen("addons/amxmodx/configs/banned.ini""rt")
    while (!
feof(file))
    {
        
fgets(filebanned_playercharsmax(banned_player))
        
TrieSetString(blocked_idkeybanned_player)
    }
    
fclose(file)
    if(
TrieKeyExists(blocked_id"123"))
    {
        
fputs(file"this line exists")
    }

but its not working ( BTW blocked_id isn't really player id's it was the idea but didn't work.)
Dr7sTyLe 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 08:35.


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