Raised This Month: $ Target: $400
 0% 

Limit weapon via IP.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-17-2010 , 12:11   Re: Limit weapon via IP.
Reply With Quote #1

Quote:
Originally Posted by xPaw View Post
Yami, Trie would be perfect for this situation, lazy to write example, but he can search around and find what he wants
Never used Trie. What are the benefits?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-17-2010 , 13:44   Re: Limit weapon via IP.
Reply With Quote #2

Quote:
Originally Posted by YamiKaitou View Post
Never used Trie. What are the benefits?
Just compare to this:

Code:
new Trie:g_tSteamIds; // init g_tSteamIds = TrieCreate( ); // end TrieDestroy( g_tSteamIds ); // add TrieSetString( g_tSteamIds, "STEAM_0:1:16", 1 ); // Hi bailopan! // check TrieKeyExists( g_tSteamIds, "STEAM_0:1:16" ); // delete TrieDeleteKey( g_tSteamIds, "STEAM_0:1:16" );
__________________
xPaw is offline
Reply



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 14:47.


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