// no player if (!player) { SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S); return; }
修改为 // no player if (!player) { SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S); return; } if(player->pvpInfo.inFFAPvPArea || this->GetPlayer()->pvpInfo.inFFAPvPArea) { std::string info = ""; player->pvpInfo.inFFAPvPArea ? info = "your target is" : info = "you are"; this->SendNotification("Group invite failed, %s in a FFA Area", info); return; }