Raised This Month: $ Target: $400
 0% 

read_flags() doesn't working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-21-2017 , 21:32   Re: read_flags() doesn't working
Reply With Quote #1

Quote:
Originally Posted by EFFx View Post
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 View Post
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 View Post
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.
__________________

Last edited by fysiks; 06-21-2017 at 21:45.
fysiks is online now
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode