SA-MP Forums Archive
IfPlayerIsInRangeOfPoint problem. - 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)
+--- Thread: IfPlayerIsInRangeOfPoint problem. (/showthread.php?tid=399045)



IfPlayerIsInRangeOfPoint problem. - Kestro - 12.12.2012

So I've changed a couple of positions, but I can't change the isplayerinrangeofpoint, it comes up with a warning, here is my code:
Код:
 if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2043.1835, -1823.0391, -29.5436,44.9011))
and the warning:
Код:
(617) : warning 202: number of arguments does not match definition



Re: IfPlayerIsInRangeOfPoint problem. - goviscrap - 12.12.2012

The warning says itself. The argument "isPlayerInRangeOfPoint" is not written as it should be
Your function is using 6 Arguments but the definition of this is 5 argument's.. So you need to delete the fifth text "44.9011"
So it should look like this:
Код:
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2043.1835, -1823.0391, -29.5436))
so skip the 6th argument "44.9011"


Re: IfPlayerIsInRangeOfPoint problem. - Kestro - 12.12.2012

Ah, thanks.


Re: IfPlayerIsInRangeOfPoint problem. - goviscrap - 12.12.2012

No prob!