What is the problem?
#7

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
Reply


Messages In This Thread
What is the problem? - by Daynox12 - 02.06.2018, 19:24
Re: What is the problem? - by HoNEYKISS - 02.06.2018, 19:31
Re: What is the problem? - by Cell_ - 02.06.2018, 19:43
Re: What is the problem? - by Daynox12 - 02.06.2018, 19:43
Re: What is the problem? - by Daynox12 - 02.06.2018, 19:59
Re: What is the problem? - by Cell_ - 02.06.2018, 20:10
Re: What is the problem? - by Daynox12 - 02.06.2018, 20:12
Re: What is the problem? - by Daynox12 - 02.06.2018, 21:37
Re: What is the problem? - by Cell_ - 02.06.2018, 22:03
Re: What is the problem? - by GTLS - 03.06.2018, 06:11

Forum Jump:


Users browsing this thread: 2 Guest(s)