View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-19-2021 , 02:28   Re: Whats Wrong I had Done :(
Reply With Quote #4

The following might fix ur problem. Check if the attacker is actually a valid player.

PHP Code:
if(iAttacker != 0)
{
    
// Valid id.

or this would be even better:

PHP Code:
if(<= MAX_PLAYERS <= 32)
{
    
// Valid id.

__________________

Last edited by Napoleon_be; 10-19-2021 at 02:29.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be