IsPlayerInRangeOfPoint
#1

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1560.6959,3.2157,23.2993)) || if(IsPlayerInRangeOfPoint(playerid, 2.0, 1548.2209,4.9159,23.5337)) // LINE 560
Gives:
pawn Код:
(560) : error 029: invalid expression, assumed zero
(560) : warning 215: expression has no effect
(560) : error 001: expected token: ";", but found "if"
But with:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1560.6959,3.2157,23.2993))
It does work
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1560.6959,3.2157,23.2993) || IsPlayerInRangeOfPoint(playerid, 2.0, 1548.2209,4.9159,23.5337))
Reply
#3

You gotta use it like this;

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1560.6959,3.2157,23.2993) || IsPlayerInRangeOfPoint(playerid, 2.0, 1548.2209,4.9159,23.5337))
Reply
#4

Mmm, I thought I tried this already but it failed.
Whatever.

Thanks! Worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)