View Single Post
07-02-11, 08:30 AM   #11
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by SDPhantom View Post
GetCVar() has always acted this way. Blizzard later created GetCVarBool() that returns CVars stored as "0" and "1" as a boolean.
If I remember correctly, GetCVar used to return "0" instead of just a nil, breaking the following example ..
Code:
/run SetCVar("Sound_EnableSFX", 1-GetCVar("Sound_EnableSFX"))
I can remember that the above example script used to work, but not anymore now
  Reply With Quote