RexpeitaOzica
New Member
- Joined
- Jun 5, 2017
- Messages
- 7
- Reaction score
- 0
Hello, I'm trying to add it to the src when the player looks at the summon and it shows the name of the creator...
But I'm not succeeding.
It's giving me this error when compiling after I make changes
1>c:\users\malucos\desktop\src nova - copia\monster.h(73): error C2440: 'initializing': cannot convert from 'const Creature *' to 'Creature *' (compiling source file ..\monster.cpp)
1> c:\users\malucos\desktop\src nova - copia\monster.h(73): note: Conversion loses qualifiers (compiling source file ..\monster.cpp)
Here is the part I modified in monster.h
I use OTX SERVER 2 ~ 8.60
But I'm not succeeding.
It's giving me this error when compiling after I make changes
1>c:\users\malucos\desktop\src nova - copia\monster.h(73): error C2440: 'initializing': cannot convert from 'const Creature *' to 'Creature *' (compiling source file ..\monster.cpp)
1> c:\users\malucos\desktop\src nova - copia\monster.h(73): note: Conversion loses qualifiers (compiling source file ..\monster.cpp)
Here is the part I modified in monster.h
C++:
virtual std::string getDescription(int32_t) const {
Creature* creature = getMaster();
if (creature) {
return mType->nameDescription + ". Summoned by " + creature->getName() + ".";
}
return mType->nameDescription + ".";
}
I use OTX SERVER 2 ~ 8.60