Squirrel/Server/Functions/HashTables/Del

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Notes)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|HashTable.Del}}
  
 
== Syntax ==
 
== Syntax ==

Latest revision as of 10:25, 11 October 2010

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


[edit] Syntax

  1. HashTable.Del( data )

[edit] Arguments

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

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

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox