Solved Installing ban common

Status
Not open for further replies.
I don't quite understand. Maybe it's because I'm still new.

Can you show me the code?
He doesn't need to give u code he gave u the answer.

Search the source for SendBanPlayer you'll see it listed under private, change it to public like flipper told you lol.
 
  • Like
Reactions: unlimitzflyff
1. Public:
- Members declared as public are accessible from anywhere in the program. This includes code outside the class, like other functions and objects.
- Use this when you want data or functions to be available to other parts of your program without restrictions.


2. Private:
- Members declared as private are only accessible within the class itself. Neither other functions nor other classes can access them directly.
- You typically use private to hide data and force encapsulation, providing control over how and when class data is accessed or modified.


3. Protected:
- Members declared as protected are similar to private members, but they are also accessible in derived (child) classes.
- This is useful for inheritance scenarios where the base class needs to control member access, but derived classes should still have access to the member.

Key Points to Remember:
  • Public: Accessible from anywhere (inside and outside the class).
  • Private: Accessible only from within the class. If you want controlled access, provide public getter/setter methods.
  • Protected: Accessible from within the class and derived classes. Useful in inheritance.

### Example Showing All Three:
Hey There!
Please login and(or) register to see this awesome content today.
 
DPDatabaseClient.h

you are looking for:


you move it to a public place or you put " public: " in front and you put " private: " behind (not recommended)

Can't explain it to you better
Thank you for elaborating on this for me.

It has been fixed.

Thank you everyone very much.
 
Status
Not open for further replies.