if(!IsPlayerInRangeOfPoint(playerid,5.0,1635.46,-263.07,43.79))&& (5.0,1287.16,1303.05,10.53)&& (5.0,-1245.89,-748.73,63.83)&& (5.0,1085.25,-1381.94,13.52); return SendClientMessage(playerid,COLOR_PINK,"You're not at the right place");
if(!IsPlayerInRangeOfPoint(playerid,5.0,1635.46,-263.07,43.79) || !IsPlayerInRangeOfPoint(playerid,5.0,1287.16,1303.05,10.53) || !IsPlayerInRangeOfPoint(playerid,5.0,-1245.89,-748.73,63.83) || !IsPlayerInRangeOfPoint(playerid,5.0,1085.25,-1381.94,13.52); return SendClientMessage(playerid,COLOR_PINK,"You're not at the right place");
Nope, OP got && right - it will go off only when he isn't in any of those places.
|
d:\Users\User\Desktop\SCript\filterscripts\CustomPNS.pwn(131) : error 001: expected token: ")", but found ";" d:\Users\User\Desktop\SCript\filterscripts\CustomPNS.pwn(131) : error 036: empty statement d:\Users\User\Desktop\SCript\filterscripts\CustomPNS.pwn(132) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
if(!IsPlayerInRangeOfPoint(playerid,5.0,1635.46,-263.07,43.79) && !IsPlayerInRangeOfPoint(playerid,5.0,1287.16,1303.05,10.53) && !IsPlayerInRangeOfPoint(playerid,5.0,-1245.89,-748.73,63.83) && !IsPlayerInRangeOfPoint(playerid,5.0,1085.25,-1381.94,13.52)) return SendClientMessage(playerid,COLOR_PINK,"You're not at the right place")