Aller au contenu principal

DeleteSVar

Description

Deletes a previously set server variable.

NameDescription
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

astuce

Once a variable is deleted, attempts to retrieve the value will return 0 for integers and 0.0 for floats and NULL for strings.