Answer the question
In order to leave comments, you need to log in
How to understand bit masks or whatever they are?
https://vk.com/dev/permissions
I just can’t enter how to do it using such a set of permissions in my API. For example, so that the user can post articles and comment, but cannot delete them. Well, and so on.
Explain how to down or give something to read, please.
Answer the question
In order to leave comments, you need to log in
Do you know
about the binary representation of numbers?
0 = 0000 0000
1 = 0000 0001
2 = 0000 0010
3 = 0000 0011
4 = 0000 0100
5 = 0000 0101
6 = 0000 0110
7 = 0000 0111
8 = 0000 1000
9 = 0000 1001
3 = 0000 0011
means 2 0 + 2 1 = 1 + 2 = 3. 1 - бит 0 - notify
2 - бит 1 - friends
4 - бит 2 - photos
8 - бит 3 - audio
12 = 0000 0000 0000 1100
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question