note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
DeleteSVar
Description
Deletes a previously set server variable.
Name | Description |
---|---|
const svar[] | The name of the server variable to delete. |
Returns
true - The function executed successfully.
false - The function failed to execute. There is no variable set with the given name.
Examples
SetSVarInt("SomeVarName", 69);
// Later on, when the variable is no longer needed...
DeleteSVar("SomeVarName");
Notes
tip
Once a variable is deleted, attempts to retrieve the value will return 0 for integers and 0.0 for floats and NULL for strings.
Related Functions
- SetSVarInt: Set an integer for a server variable.
- GetSVarInt: Get a player server as an integer.
- SetSVarString: Set a string for a server variable.
- GetSVarString: Get the previously set string from a server variable.
- SetSVarFloat: Set a float for a server variable.
- GetSVarFloat: Get the previously set float from a server variable.