Squirrel/Server/Functions/HashTables/Load
From Liberty Unleashed Wiki
(Difference between revisions)
(→Notes) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|HashTable.Load}} | |
== Syntax == | == Syntax == | ||
− | <code>HashTable. | + | <code>HashTable.Load( location )</code> |
== Arguments == | == Arguments == |
Latest revision as of 10:26, 11 October 2010
[edit] Syntax
HashTable.Load( location )
[edit] Arguments
- location - The file path and name of the file to load the hash table from.
[edit] Example
function onScriptLoad( ) { pDataHash.Load( "Scripts/LUScript/Hashes/DataHash.hsh" ); }
This example will load the data from this file into the DataHash that is stored within the servers memory.
[edit] 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.