Skip to main content

DeleteSVar

คำอธิบาย

Deletes a previously set server variable.

NameDescription
varnameThe name of the server variable to delete.

ส่งคืน

1: The function executed successfully.

0: The function failed to execute. There is no variable set with the given name.

ตัวอย่าง

SetSVarInt("SomeVarName", 69);

// Later on, when the variable is no longer needed...

DeleteSVar("SomeVarName");

บันทึก

tip

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

ฟังก์ชั่นที่เกี่ยวข้องกัน