1.1 --- a/plugins/include/keyvalues.inc Sun May 06 05:28:45 2007 +0000
1.2 +++ b/plugins/include/keyvalues.inc Sun May 06 06:15:48 2007 +0000
1.3 @@ -193,6 +193,26 @@
1.4 native bool:KvJumpNextSubKey(Handle:kv);
1.5
1.6 /**
1.7 + * Removes the given key from the current position.
1.8 + *
1.9 + * @param kv KeyValues Handle.
1.10 + * @param key Name of the key.
1.11 + * @return True on success, false if key did not exist.
1.12 + * @error Invalid Handle.
1.13 + */
1.14 +native bool:KvDeleteKey(Handle:kv, const String:key[]);
1.15 +
1.16 +/**
1.17 + * Removes the current sub-key and jumps back one position, using the previous
1.18 + * position as the search point. This will not work if used on the root node.
1.19 + *
1.20 + * @param kv KeyValues Handle.
1.21 + * @return True on success, false if there was no sub key.
1.22 + * @error Invalid Handle.
1.23 + */
1.24 +native bool:KvDeleteThis(Handle:kv);
1.25 +
1.26 +/**
1.27 * Jumps back to the previous position. Returns false if there are no
1.28 * previous positions (i.e., at the root node). This should be called
1.29 * once for each successful Jump call, in order to return to the top node.