Nuzzo 49 Posted October 1, 2022 Share Posted October 1, 2022 (edited) Hello everyone, can you help me? I guess the declaration on item.h is missing, but I have no idea what to write. Thank you very much https://metin2.download/picture/2e8YK5615t9w5ePugNeHKjSPMl6wjaxl/.png Edited October 1, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Contributor Amun 1894 Posted October 1, 2022 Contributor Share Posted October 1, 2022 (edited) To declare a method you just have to add its return type and name in the corresponding class body. ex: class CItem { public: // access void someMethod(); // your method's declaration } Defining it: void CItem::someMethod() { // do work } Also, you should probably try using Google before asking about shit like this. Edited October 1, 2022 by Amun More details and a bit of hate <3 Link to comment Share on other sites More sharing options...
Nuzzo 49 Posted October 1, 2022 Author Share Posted October 1, 2022 3 hours ago, Amun said: To declare a method you just have to add its return type and name in the corresponding class body. ex: class CItem { public: // access void someMethod(); // your method's declaration } Defining it: void CItem::someMethod() { // do work } Also, you should probably try using Google before asking about shit like this. I tried to do it myself and google it, if I wrote here there is a reason. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now