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
1367-1377
4801:
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:
}