20.02.2019, 12:50
When a run time error occurs in `OnPlayerDeath` callback from groups.inc, it breaks the hook chain and makes the public function from the gamemode not to be called.
What is the problem with crashdetect plugin? Have you tried older versions? It will make it easier.
Check if `killerid` is not INVALID_PLAYER_ID.
Check if `PlayerInfo[killerid][pGroup]` is in range (0 <= PlayerInfo[killerid][pGroup] < sizeof (GroupInfo))
Check if `cid` is in range (0 <= cid < sizeof (ContractInfo))
What is the problem with crashdetect plugin? Have you tried older versions? It will make it easier.
Code:
if(GroupInfo[PlayerInfo[killerid][pGroup]][gType]==GROUP_TYPE_HITMAN){
Check if `PlayerInfo[killerid][pGroup]` is in range (0 <= PlayerInfo[killerid][pGroup] < sizeof (GroupInfo))
Code:
cid = GetPlayerContractID(playerid); ContractInfo[cid][c_killer] = PlayerInfo[killerid][pID];