-
Notifications
You must be signed in to change notification settings - Fork 58
Description
i write here to don't forget the issues:
src/server/game/Anticheat/AnticheatMgr.cpp:178:36: fatal error: no viable conversion from 'ObjectGuid' to 'uint32' (aka 'unsigned int')
178 | SaveLuaCheater(player->GetGUID(), player->GetSession()->GetAccountId(), macro);
| ^~~~~~~~~~~~~~~~~
fixed changing to
SaveLuaCheater(player->GetGUID().GetCounter(), player->GetSession()->GetAccountId(), macro);
src/server/scripts/Commands/cs_anticheat.cpp:160:47: fatal error: no viable conversion from 'ObjectGuid' to 'uint32' (aka 'unsigned int')
160 | sAnticheatMgr->AnticheatDeleteCommand(pTarget->GetGUID());// deletes auto reports on player
| ^~~~~~~~~~~~~~~~~~
fixed changing to
sAnticheatMgr->AnticheatDeleteCommand(pTarget->GetGUID().GetCounter());
src/produccion/src/server/scripts/Commands/cs_anticheat.cpp:178:47: fatal error: no viable conversion from 'ObjectGuid' to 'uint32' (aka 'unsigned int')
178 | sAnticheatMgr->AnticheatDeleteCommand(player->GetGUID());
fixed changing to
sAnticheatMgr->AnticheatDeleteCommand(player->GetGUID().GetCounter());
src/server/game/Anticheat/AnticheatMgr.cpp:1548:1284: fatal error: no viable overloaded operator[] for type
'AnticheatPlayersDataMap' (aka 'map<unsigned int, AnticheatData>')
src/server/game/Anticheat/AnticheatMgr.cpp:1554:1283
src/server/game/Anticheat/AnticheatMgr.cpp:1665:1292
1548 | CharacterDatabase.PExecute("REPLACE INTO players_reports_status (guid,average,total_reports,speed_reports,fly_reports,jump_reports,waterwalk_reports,teleportplane_reports,climb_reports,teleport_reports,ignorecontrol_reports,zaxis_reports,antiswim_reports,gravity_reports,antiknockback_reports,no_fall_damage_reports,op_ack_hack_reports,counter_measures_reports,creation_time) VALUES ({},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{});", player->GetGUID().GetCounter(), playerData.GetAverage(), playerData.GetTotalReports(), playerData.GetTypeReports(SPEED_HACK_REPORT), playerData.GetTypeReports(FLY_HACK_REPORT), playerData.GetTypeReports(JUMP_HACK_REPORT), playerData.GetTypeReports(WALK_WATER_HACK_REPORT), playerData.GetTypeReports(TELEPORT_PLANE_HACK_REPORT), playerData.GetTypeReports(CLIMB_HACK_REPORT), playerData.GetTypeReports(TELEPORT_HACK_REPORT), playerData.GetTypeReports(IGNORE_CONTROL_REPORT), playerData.GetTypeReports(ZAXIS_HACK_REPORT), playerData.GetTypeReports(ANTISWIM_HACK_REPORT), playerData.GetTypeReports(GRAVITY_HACK_REPORT), playerData.GetTypeReports(ANTIKNOCK_BACK_HACK_REPORT), playerData.GetTypeReports(NO_FALL_DAMAGE_HACK_REPORT), playerData.GetTypeReports(OP_ACK_HACK_REPORT), playerData.GetTypeReports(COUNTER_MEASURES_REPORT), m_Players[player->GetGUID()].GetCreationTime());
|
m_Players[player->GetGUID()].GetCreationTime());
to
m_Players[player->GetGUID().GetCounter()].GetCreationTime());