General > Developers Corner
Unable to figure out why my commands are not working.
feldma:
I think (and since my coding is still horrible), the reason the opposite command isn't working is because you have an
--- Code: ---elseif not should_revoke.
--- End code ---
I don't think that is how the opposite command works.
But as I say, I can't code (yet).
roastchicken:
--- Quote from: feldma on March 03, 2016, 09:33:33 PM ---I think (and since my coding is still horrible), the reason the opposite command isn't working is because you have an
--- Code: ---elseif not should_revoke.
--- End code ---
I don't think that is how the opposite command works.
But as I say, I can't code (yet).
--- End quote ---
If should_revoke works how I think it works (which it probably doesn't), then their code should be fine. One possibility is that SetNoTarget isn't/doesnt do what you are expecting. Try putting a print (or a fancyLogAdmin) in the if statements for should_revoke and see what prints.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version