SA-MP Forums Archive
IsPlayerInRangeOfPoint Empty Statement - 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: IsPlayerInRangeOfPoint Empty Statement (/showthread.php?tid=500993)



IsPlayerInRangeOfPoint Empty Statement - DarkLored - 16.03.2014

So i get a wired error that i miss something in IsPlayerInRangeOfPoint function

here is the code
pawn Код:
new Float:X, Float:Y, Float:Z;
              GetPlayerPos(id,X,Y,Z);
              if(IsPlayerInRangeOfPoint(playerid,2,X,Y,Z));
pawn Код:
LSCNR.pwn(3883) : error 036: empty statement



Re: IsPlayerInRangeOfPoint Empty Statement - anou1 - 16.03.2014

Try to do 2.0 instead of 2 for the range.


Re: IsPlayerInRangeOfPoint Empty Statement - CuervO - 16.03.2014

Quote:
Originally Posted by anou1
Посмотреть сообщение
Try to do 2.0 instead of 2 for the range.
...


@OP You're ending an if statement with a semicolon. Conditions have to be followed by curly brackets (normally).


Re: IsPlayerInRangeOfPoint Empty Statement - DarkLored - 16.03.2014

Oops your right sorry for making this thread i didnt notice it XD