OnPlayerDeath crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerDeath crash (
/showthread.php?tid=513691)
OnPlayerDeath crash -
Palashte - 17.05.2014
... delete it
Re: OnPlayerDeath crash -
Palashte - 17.05.2014
delete it ..
Re: OnPlayerDeath crash -
driftpower - 17.05.2014
shouldn't you check if PlayerInfo[killerid][pMember] is a valid playerid first?
Re: OnPlayerDeath crash -
Palashte - 17.05.2014
delete it
Re: OnPlayerDeath crash -
Konstantinos - 17.05.2014
driftpower is right. You must check if killerid is not INVALID_PLAYER_ID before using it inside arrays otherwise it will cause run time error 4.