Amxxprogramer / The advantages cellTrie.sma.txt
RichieBurundi's picture
Upload 28 files
82d6031 verified
raw
history blame contribute delete
724 Bytes
#include <amxmodx>
#include <amxmisc>
#include <celltrie>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public findSteamID(steamID[34],Trie:steamIDs)
{
new value;
TrieGetCell(steamIDs,steamID,value);
return value;
}
public plugin_cfg()
{
new file = fopen("list","r")
new steamID[34]
new Trie:steamIDs = TrieCreate()
while(fgets(file,steamID,33))
{
steamID[strlen(steamID)-2] = 0;
TrieSetCell(steamIDs,steamID,true);
}
new steamIDFind[34] = "STEAM_0:1:1234567";
for(new i=0;i<10000;i++)
{
findSteamID(steamIDFind,steamIDs);
}
server_cmd("quit");
}