Przy kompilacji wyskakuje mi taki błąd:
MainCharacter.hpp:4:7: error: redefinition of 'float MainCharX'
4 | float MainCharX;
| ^~~~~~~~~
MainCharacter.hpp:4:7: note: 'float MainCharX' previously declared here
4 | float MainCharX;
| ^~~~~~~~~
MainCharacter.hpp:5:7: error: redefinition of 'float MainCharY'
5 | float MainCharY;
| ^~~~~~~~~
MainCharacter.hpp:5:7: note: 'float MainCharY' previously declared here
5 | float MainCharY;
| ^~~~~~~~~
MainCharacter.hpp:7:7: error: redefinition of 'float MainCharVelX'
7 | float MainCharVelX;
| ^~~~~~~~~~~~
MainCharacter.hpp:7:7: note: 'float MainCharVelX' previously declared here
7 | float MainCharVelX;
| ^~~~~~~~~~~~
MainCharacter.hpp:8:7: error: redefinition of 'float MainCharVelY'
8 | float MainCharVelY;
| ^~~~~~~~~~~~
MainCharacter.hpp:8:7: note: 'float MainCharVelY' previously declared here
8 | float MainCharVelY;
| ^~~~~~~~~~~~
Niestety nie wiem jak go naprawić.
Może ktoś pomóc?