Squirrel/Server/Functions/HashTables/FindHashTable
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ == Syntax == <code>FindHashTable( name )</code> == Arguments == * ''' name ''' - The name of the hash table to find in memory. == Example == <code lang="squirrel"> function...) |
(→Notes) |
||
Line 21: | Line 21: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Events/ | + | The function [[Squirrel/Server/Events/Player/onPlayerJoin|onPlayerJoin]] was used in this example, more info about it in the corresponding page. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/HashTables}} | {{Squirrel/Server/Functions/HashTables}} |
Revision as of 02:18, 26 May 2010
Syntax
FindHashTable( name )
Arguments
- name - The name of the hash table to find in memory.
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.
Notes
The function onPlayerJoin was used in this example, more info about it in the corresponding page.