Squirrel/Server/Functions/HashTables/HashTable
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ == Syntax == <code>bool HashTable( string Name );</code> == Arguments == * ''' Name ''' - What you want to call the hash table. == Example == <code lang="squirrel"> functio...) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|HashTable}} | |
== Syntax == | == Syntax == |
Latest revision as of 10:24, 11 October 2010
[edit] Syntax
bool HashTable( string Name );
[edit] Arguments
- Name - What you want to call the hash table.
[edit] Example
function onScriptLoad() { pDataHash <- HashTable( "Data" ); }
This example will create a HashTable which is called "Data" within the scripts, it can be accessed via the pDataHash global variable.
[edit] Notes
The function onScriptLoad was used in this example, more info about it in the corresponding page.