• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Help] Account Flags

Joined
Sep 3, 2013
Messages
903
Reaction score
227
Hello, I have trouble understanding the system accountflags for ShowPlayerlist(); , i make new flags

In server :

Code:
if(peers_[i].player->profile_.ProfileData.isTwitch == 1)
					n.flags |= 10;

if(plr->profile_.ProfileData.isTwitch == 1)
n.flags |= 10;

In client :

Code:
else if(plrInfo->accountFlags == 10)
	{
		var[10].SetBoolean(true);
		var[11].SetBoolean(false);
	}

But , I have as if I had the dev account flag, I change ID like n.flags |= 99 , i have flag punisher. I missing files ?


Thanks.
 
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
The problem is that you don't understand bitshiffting, what is fully ok because its something what you don't use normally, but if you use that then you use it for Flags as they did for the chat system. What you got to do is to go straigh from the top to the down, I mean first you start with dev, because you might have the twitch flag too and that means that you would overwrite dev flag in someway...
 
Upvote 0
Back
Top