HashTable

From Liberty Unleashed Wiki
Revision as of 10:24, 11 October 2010 by VRocker (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


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