Open stephanthenoob opened 3 years ago
learncpp.com and dont blidnly paste
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
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)
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
, andevent_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