Squirrel/Server/Functions/HashTables/HashTable

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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:
__NOTOC__
+
{{Squirrel/Title|HashTable}}
  
 
== Syntax ==
 
== Syntax ==

Latest revision as of 10:24, 11 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


[edit] Syntax

  1. bool HashTable( string Name );

[edit] Arguments

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

[edit] 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.

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox