Raised This Month: $12 Target: $400
 3% 

Client Disconnect (ID)


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-23-2010 , 08:43   Re: Client Disconnect (ID)
Reply With Quote #11

Quote:
Originally Posted by abdul-rehman View Post
What are tries btw ??
Are they like CellArrays ??
Arrays: collection of data indexed by a number
Tries: collection of data indexed by a string

Here's some pseudo-code describing it:
Code:
array[0] = 1
array[1] = 2

trie["some string"] = 1
trie["another string"] = 2
When using tries, you obviously can't use it like I just showed you.
You use it the same way you use cellarrays, except with strings.

Code:
ArrayPushCell(array, 1) ArrayPushCell(array, 2) TrieSetCell(trie, "some string", 1) TrieSetCell(trie, "another string", 2)

If you want to traverse the trie (meaning reading all keys and values), then you will either have to write small code yourself using cellarrays, or use CellTravTrie (written by Hawk552 in Code Snippets/Tutorials).

See celltrie.inc for more information on it's natives and usage.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 17:18.


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