Squirrel/Server/Functions/HashTables/Del

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ == Syntax == <code>HashTable.Del( data )</code> == Arguments == * ''' data ''' - The info that you wish to remove from the hash table. == Example == <code lang="squirrel"> ...)
 
(Notes)
Line 22: Line 22:
 
=== Notes ===
 
=== Notes ===
  
The function [[Squirrel/Server/Events/Player/onPlayerJoin|onPlayerJoin]] and [[Squirrel/Server/Functions/Players/PlayerName|Player.Name]] were used in this example, more info about it in the corresponding page.
+
The function [[Squirrel/Server/Events/Player/onPlayerJoin|onPlayerJoin]] and [[Squirrel/Server/Functions/Players/PlayerName|Player.Name]] were used in this example, more info about them in the corresponding page.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/HashTables}}
 
{{Squirrel/Server/Functions/HashTables}}

Revision as of 02:05, 26 May 2010


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