HashTable.Add
From Liberty Unleashed Wiki
Syntax
HashTable.Add( key, value )
Arguments
- key - How you will retrieve this information.
- value - The info that you wish to add to the hash table, integer/float/string.
Example
function onPlayerJoin( pPlayer ) { pDataHash.Add( pPlayer.Name + "IP", pPlayer.IP ); }
This example will add the player's ip to the database that just joined the server. It can be retrieved via playernameIP.
Notes
The function onPlayerJoin and Player.IP and Player.Name were used in this example, more info about them in the corresponding page.