IsPlayerInRangeOfPoint bug ?
#4

Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, -7.5863,-74.3160,3.1172)) return SendClientMessage(playerid,red,"ERROR:You must be near the Chest to use the command");
The above code will return the error message only if the player is in range of the point. If the player is not in range of the point then it will continue.

You should change the code to below, this will send the error message if the player is not in range of the point.
Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, -7.5863,-74.3160,3.1172)) return SendClientMessage(playerid,red,"ERROR:You must be near the Chest to use the command");
Notice the added exclamation mark preceding IsPlayerInRangeOfPoint - for more information see https://sampwiki.blast.hk/wiki/Control_...ures#Operators
Reply


Messages In This Thread
IsPlayerInRangeOfPoint bug ? - by nbx2000 - 15.12.2018, 23:02
Re: IsPlayerInRangeOfPoint bug ? - by Kaliber - 15.12.2018, 23:23
Re: IsPlayerInRangeOfPoint bug ? - by nbx2000 - 15.12.2018, 23:26
Re: IsPlayerInRangeOfPoint bug ? - by MEW273 - 15.12.2018, 23:26
Re: IsPlayerInRangeOfPoint bug ? - by nbx2000 - 15.12.2018, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)