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

Compiling Errors in player.cpp

straher

???
Joined
Mar 23, 2010
Messages
255
Reaction score
3
I've made few changes in player.cpp and now I encounter errors. The strange thing is that I did not change anything in lines the errors show up

Code:
player.cpp: In member function 'virtual void Player::onChangeZone(ZoneType_t)':
player.cpp:1367: error: a function-definition is not allowed here before '{' token
player.cpp:4801: error: expected '}' at end of input


1367-1377

Code:
{
	if(zone == ZONE_PROTECTION && !hasFlag(PlayerFlag_IgnoreProtectionZone))
	{
		setAttackedCreature(NULL);
		onAttackedCreatureDisappear(false);
	}
	else if(zone == ZONE_NOPVP && attackedCreature->getPlayer() && !hasFlag(PlayerFlag_IgnoreProtectionZone))
	{
		setAttackedCreature(NULL);
		onAttackedCreatureDisappear(false);
	}

4801:
Code:
}
 
Back
Top