Squirrel/Server/Functions/HashTables/FindHashTable
From Liberty Unleashed Wiki
(Difference between revisions)
(→Notes) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|FindHashTable}} | |
== Syntax == | == Syntax == |
Latest revision as of 10:24, 11 October 2010
[edit] Syntax
FindHashTable( name )
[edit] Arguments
- name - The name of the hash table to find in memory.
[edit] Example
function onPlayerJoin( pPlayer ) { pHashTable <- FindHashTable( "DataHash" ); }
This example will set the pHashTable variable to be a pointer to the 'DataHash' hash table if it finds it.
[edit] Notes
The function onPlayerJoin was used in this example, more info about it in the corresponding page.