Scripting/Server/Classes/HashTable/Add
Set / read (returns null if missing) / remove.
Syntax
ht.Add(key, value)ht.Get(key)ht.Del(key)Arguments
- string key
- bool value
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "add" )
{
// ht is a ht handle (see HashTable)
ht.Add( "X", true );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: HashTable
Categories: Server methods | HashTable