• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Have problem compilando add new scripts

cocacola13

Member
Joined
Jan 18, 2019
Messages
179
Reaction score
12
Location
poland
hello trying to copy the reborn system, but an error pops up during compilation



[ 2%] Building CXX object CMakeFiles/tfs.dir/src/game.cpp.o
/home/ots/src/game.cpp: In member function ‘bool Game::combatChangeHealth(Creature*, Creature*, CombatDamage&)’:
/home/ots/src/game.cpp:3791:44: error: ‘class Player’ has no member named ‘rebirth’
3791 | bonusRebirth = attackerPlayer->rebirth * g_config.getNumber(ConfigManager::REBORN_DMGBONUS);
| ^~~~~~~
make[2]: *** [CMakeFiles/tfs.dir/build.make:413: CMakeFiles/tfs.dir/src/game.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I can't get along

reborn system : reborn


Edit: One
typo in configmanager.h
Post automatically merged:

Not work only this same error
 
Last edited:
Back
Top