HashTable.Get

From Liberty Unleashed Wiki
Revision as of 10:23, 11 October 2010 by VRocker (Talk | contribs)

Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events


Syntax

  1. HashTable.Get( data )

Arguments

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

Example

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "cash" ) Message( pPlayer.Name + " is currently holding $" + pDataHash.Get( pPlayer.Name + "Money" );
  5. }
  6.  

This example will fetch the reference (playnameMoney) to the players money value when they use /cash.

Notes

The function onPlayerCommand 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