Squirrel/Server/Functions/HashTables/HashTable

From Liberty Unleashed Wiki
Revision as of 15:26, 24 May 2010 by Force (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Syntax

  1. bool HashTable( string Name );

Arguments

  • Name - What you want to call the hash table.

Example

  1.  
  2. function onScriptLoad()
  3. {
  4. pDataHash <- HashTable( "Data" );
  5. }
  6.  

This example will create a HashTable which is called "Data" within the scripts, it can be accessed via the pDataHash global variable.

Notes

The function onScriptLoad was used in this example, more info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox