- 0
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Activity
-
-
26
-
1
-
31
-
1
Quest. Give different items to male and female characters.
Hello. How can i make a quest to give different items to male and female characters? -
70
Metin2 Dev - Changelogs
Marketplace Did you find this review helpful? --> Reset for all reviews There has been abuse of review ratings within the Marketplace They were used for revenge and were not honest (Because it was anonymous (or not, for me))- 1
-
-
0
Where to start metin2 dev?
Hello, I am an individual developer and would consider myself 'decent' in coding. I have been playing metin2 for a long time and recently I wanted to learn metin2dev but I have no clue where to start? Could you please give me a direction so I can start from easy and learn my way through? -
10
-
11
CArea loading optimization
in CArea::__UpdateLoadedObjectInstances u have new func "emplace" and here it is not used value_type if ((*it)->dwType == prt::PROPERTY_TYPE_BUILDING) m_GraphicThingInstanceCRCMap.emplace(TGraphicThingInstanceCRCMap::value_type((*it)->pThingInstance, c_pObjectData->dwCRC)); like this: if ((*it)->dwType == prt::PROPERTY_TYPE_BUILDING) m_GraphicThingInstanceCRCMap.emplace((*it)->pThingInstance, c_pObjectData->dwCRC);
-
Question
danio475 4
Hi I try to fix party drophack in my source, but I have some problems :
char_item.cpp:5644: error: ISO C++ forbids initialization of member 'is_allowed' char_item.cpp:5644: error: making 'is_allowed' static char_item.cpp:5644: error: ISO C++ forbids in-class initialization of non-const static member 'is_allowed'
this is the code :
namespace NPartyPickupPermission { struct FCompareOwnership { LPITEM item; bool is_allowed = false; FCompareOwnership(LPITEM item) : item(item) { } void operator () (LPCHARACTER ch) { if (item->IsOwnership(ch) == true) is_allowed = true; } }; }
bool is_allowed = false; is a line 5644, any ideas what I did wrong?
any ideas to fix/
Link to comment
Share on other sites
Top Posters For This Question
3
2
Popular Days
Apr 23
4
Apr 22
1
Top Posters For This Question
danio475 3 posts
Galet 2 posts
Popular Days
Apr 23 2017
4 posts
Apr 22 2017
1 post
Popular Posts
Galet
Hi, Try to replace with : bool is_allowed;
danio475
it works, thanks
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now