SA-MP Forums Archive
Small Question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small Question (/showthread.php?tid=249680)



Small Question - Tommy_Mandaz - 20.04.2011

Why isnt this:

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2316.6213,-15.5227,26.7422) || IsPlayerInRangeOfPoint(playerid,3.0,2316.6213,-12.7947,26.7422) || IsPlayerInRangeOfPoint(playerid,3.0,2316.6213,-9.9805,26.7422) || IsPlayerInRangeOfPoint(playerid,3.0,2316.6213,-7.2740,26.7422))
Working? I am trying to see if the player is near those coords and if he is he can use the command I get no errors and the command works but you have to be in the corner of the bank instead of in range of those points.


Re: Small Question - Stigg - 20.04.2011

Up the Float:range.

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,10.0,2316.6213,-15.5227,26.7422) || IsPlayerInRangeOfPoint(playerid,10.0,2316.6213,-12.7947,26.7422) || IsPlayerInRangeOfPoint(playerid,10.0,2316.6213,-9.9805,26.7422) || IsPlayerInRangeOfPoint(playerid,10.0,2316.6213,-7.2740,26.7422))
See if that helps.