What a bad design for a script that you have to do something so counterintuitive as define a constant with a value meaning the opposite of it's name to turn off a feature set.
I much prefer the attempted logic this user was trying to do, which is define and use a new constant to represent the off state. It makes sense in a simple way, but that's not how this script works.
Perhaps better help might be to suggest that if they want to disable one aspect of AOS they really should disable all of them due to their interdependence. That the constant Enabled, is intended to be the flag used by the rest of the script to turn on and off the required features.
Too bad that isn't documented. Too bad Phantom and others were not polite or informative in this post.
A simple change in this script to improve the readability of it would be to change the name of the constant from Enabled to something like IsEnabled or perhaps AOSState.
--------------------------------------------------------------------------------
awdball ·
NON-beligerent Forum Member · · · ·
;^) · · · ·
RUNUO-FAQ
The team for moderation on RUNUO Forums · · · ·
HelpSomeone
(old school c coder learning and luvin c#) · · · · · · ·
Great C# Tutorial