Squirrel/Server/Functions/HashTables/Del
From Liberty Unleashed Wiki
(Difference between revisions)
(→Notes) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|HashTable.Del}} | |
== Syntax == | == Syntax == |
Latest revision as of 10:25, 11 October 2010
[edit] Syntax
HashTable.Del( data )
[edit] Arguments
- data - The info that you wish to remove from the hash table.
[edit] Example
function onPlayerPart( pPlayer ) { pDataHash.Del( pPlayer.Name + "Money" ); }
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.