Squirrel/Server/Functions/HashTables/Add

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

Jump to: navigation, search


Syntax

  1. HashTable.Add( data )

Arguments

  • data - The info that you wish to add to the hash table, integer/float/string.

Example

  1.  
  2. function onPlayerJoin( pPlayer )
  3. {
  4. pDataHash.Add( pPlayer.IP );
  5. }
  6.  

This example will add the player's ip to the database that just joined the server.

Notes

The function onPlayerJoin and Player.IP were used in this example, more info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox