IsPlayerInRangeOfPoint Empty Statement
#1

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
Reply
#2

Try to do 2.0 instead of 2 for the range.
Reply
#3

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).
Reply
#4

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


Forum Jump:


Users browsing this thread: 2 Guest(s)