Quote:
Originally Posted by EFFx
Basically, I meant correctly. It actually wasn't working.
|
There are too many things that can be grossly simplified as "not working correctly". This is why you need to be explicit. E.g. "After setting the flags, the flags didn't change" or "After setting the flags, there were other flags being set that were not specified".
Quote:
Originally Posted by EFFx
I didn't knew that firstly we need to clear and after it, set.
|
Only if you are wanting to
replace the flags for that user.
Quote:
Originally Posted by EFFx
But like, I want not clear all user's flags, I just want to add two more.
|
If you want to
add the flags to the existing flags, then your code is correct.
The code that you have posted doesn't show that read_flags() isn't working. If you think read_flags() is causing your issue then you need to test read_flags() alone. E.g.:
Code:
server_print("%d", read_flags("qt"))
I get 589824 for "qt". For a sanity check: "a" should be 1, "b" should be 2, "ab" should be 3, etc.
__________________