Squirrel/Server/Functions/HashTables/Del
From Liberty Unleashed Wiki
(Difference between revisions)
(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 | + | 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
HashTable.Del( data )
Arguments
- data - The info that you wish to remove from the hash table.
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.
Notes
The function onPlayerJoin and Player.Name were used in this example, more info about them in the corresponding page.