Squirrel/Server/Functions/HashTables/Add
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ == Syntax == <code>HashTable.Add( data )</code> == Arguments == * ''' data ''' - The info that you wish to add to the hash table, integer/float/string. == Example == <code ...) |
(→Notes) |
||
Line 22: | Line 22: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Events/Player/onPlayerJoin|onPlayerJoin]] and [[Squirrel/Server/Functions/Players/IP|IP]] 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/IP|Player.IP]] were used in this example, more info about it in the corresponding page. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/HashTables}} | {{Squirrel/Server/Functions/HashTables}} |
Revision as of 15:36, 24 May 2010
Syntax
HashTable.Add( data )
Arguments
- data - The info that you wish to add to the hash table, integer/float/string.
Example
function onPlayerJoin( pPlayer ) { pDataHash.Add( pPlayer.IP ); }
This example will add the player's ip to the database that just joined the server.
Notes
The function onPlayerJoin and Player.IP were used in this example, more info about it in the corresponding page.