Quote:
Originally Posted by Cell_
As expected when the code doesn't find a player in range of your limit, it will return INVALID_PLAYER_ID, so basically add this code after the new victimid = GetClosestPlayer(playerid, 2.0);:
pawn Код:
if(victimid == INVALID_PLAYER_ID) return 1;
Should fix that.
|
Thanks, I'll try it and let you know what happened