• 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!

Solved Uneditable player.cpp on TFS 0.3.6pl1

Slime

Active Member
Joined
Jan 25, 2014
Messages
115
Reaction score
33
Everything compiles fine until I try to edit anything in player.cpp file. Seriously, even if I change one letter in a place where it shouldn't be a problem it stops working. Then I put the letter back on its place - still doesn't compile, I have to replace player.cpp with a new one.
Errors:
30 M:\Sp.yro\OTS\server1\gui.h:24, from ..\player.cpp In file included from ../gui.h:24, from ../player.cpp
30 M:\Sp.yro\OTS\server1\player.cpp from ../player.cpp
23 M:\Sp.yro\OTS\server1\playerbox.h expected constructor, destructor, or type conversion before "class"
M:\Sp.yro\OTS\server1\dev-cpp\Makefile.win [Build Error] [obj//player.o] Error 1

otland_problem.jpg
 
Last edited:
Sure, I do!

Just tried to compile it on VirtualBbox (Windows XP) and it still returns same errors.
 
Last edited:
Ok guys, solved. For some reason there was
class Player
class PlayerBox;
instead of
class Player;
class PlayerBox

In playerbox.h
 
Back
Top