AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TrieSetKey, TrieKeyExists, ArrayPush Array, _: (https://forums.alliedmods.net/showthread.php?t=134795)

crazy.cipry 08-08-2010 16:05

TrieSetKey, TrieKeyExists, ArrayPush Array, _:
 
1. Can anyone give me a complete tutorial about those functions from celltrie.inc & cellarray.inc. funcwiki doesn't offer informations about them.

2. What does _: means in front of a variable ?

fysiks 08-08-2010 20:44

Re: TrieSetKey, TrieKeyExists, ArrayPush Array, _:
 
_: means that it de-tags a variable. So, if a variable is declared as new Float:fMyFloatVar and you use it as _:fMyFloatVar the it removes the "Float:" tag.

For tries and dynamic arrays I would just look at other plugins that use them. If you don't know what a trie is there is a thread in the tutorial forum that explains it (or you could always use google and the wikipedia article helped me too).

The cellarray.inc is documented fairly well and helps. celltrie.inc is not documented at all but how you use them is very similar to cellarray.


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

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