designer1337 / csgo-cheat-base

simple csgo internal base.
MIT License
240 stars 50 forks source link

i_game_event_listener2 not finding interfaces::event_manager? #72

Open stephanthenoob opened 3 years ago

stephanthenoob commented 3 years ago

so i wanted to make a fire game event and all those things to make a killsay on player death, so i did.

but when im almost finished, when i did in i_game_event_listener2 the Init function needed to add the listener on hook initialize, when i add the listener like this: interfaces::event_manager->add_listener(this, "player_death", false);

and i try to build, it gives me 2 errors that say: interfaces is not a class or a namespace, and event_manager undeclared identifier

i tried to include interfaces.hpp, but that doesnt fixes it.

Here is a screenshot if you still dont get me: https://i.postimg.cc/FzTjcvgH/screenshot-1115.png

Any help? @designer1337

Deadbull360 commented 3 years ago

learncpp.com and dont blidnly paste

stephanthenoob commented 3 years ago

learncpp.com and dont blidnly paste

so im pasting if i just write a function in a class and inside writing a listener? i wrote everything myself, fire_game_event function and all that stuff

bruhmoment21 commented 3 years ago

make events.hpp and events.cpp and put that there not in the interface class bruh u made my day better. and include interfaces.hpp and what u need(reminder)