HashTable.Load

From Liberty Unleashed Wiki
Revision as of 10:26, 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. HashTable.Load( location )

Arguments

  • location - The file path and name of the file to load the hash table from.

Example

  1.  
  2. function onScriptLoad( )
  3. {
  4. pDataHash.Load( "Scripts/LUScript/Hashes/DataHash.hsh" );
  5. }
  6.  

This example will load the data from this file into the DataHash that is stored within the servers memory.

Notes

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

You must make sure that the Scripts/LUScript/Hashes directory exists before attempting to save/load from it.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox