Squirrel/Server/Functions/HashTables/Del

From Liberty Unleashed Wiki
Revision as of 02:05, 26 May 2010 by Force (Talk | contribs)

Jump to: navigation, search


Syntax

  1. HashTable.Del( data )

Arguments

  • data - The info that you wish to remove from the hash table.

Example

  1.  
  2. function onPlayerPart( pPlayer )
  3. {
  4. pDataHash.Del( pPlayer.Name + "Money" );
  5. }
  6.  

This example will remove a reference (playnameMoney) to the players money value when they leave the server.

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox