OnPlayerDeath function not being called
#10

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.

Code:
if(GroupInfo[PlayerInfo[killerid][pGroup]][gType]==GROUP_TYPE_HITMAN){
Check if `killerid` is not INVALID_PLAYER_ID.
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];
Check if `cid` is in range (0 <= cid < sizeof (ContractInfo))
Reply


Messages In This Thread
OnPlayerDeath function not being called - by akib - 20.02.2019, 01:22
Re: OnPlayerDeath function not being called - by xSkin - 20.02.2019, 03:31
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 04:48
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 06:16
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 11:03
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 12:01
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 12:15
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 12:31
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 12:37
Re: OnPlayerDeath function not being called - by Calisthenics - 20.02.2019, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)