You should just tag it:
PHP Code:
TrieKeyExists( Trie:g_tBlock, Model )
Or if you want it like a stock:
PHP Code:
stock bool:TravTrieKeyExists(TravTrie:HandleTravTrie, const Key[])
{
return TrieKeyExists(Trie:HandleTravTrie,key)
}
Also, given your code, you don't need TravTries, just use normal tries. You would use TravTrie when you want to iterate over all keys(see an example in Entities Resources Replacement). Also consider to replace FM_Touch with Ham_Touch/register_touch, depending on your needs. FM_Touch is bad because you get all kind of touch between entities, while with ham/engine you can filter by classname inside module and it's better.
Also, doing pev_valid(id) is dumb.
Quote:
|
- How to use Iterator to save key in trie when map changed? That's realy confuse for me.
|
What? Trie is deleted on map change, if you want to save stuffs between maps you need files/vault/sql.
__________________