Why Its working only on the first one? - 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: Why Its working only on the first one? (
/showthread.php?tid=537051)
Why Its working only on the first one? -
Lirbo - 13.09.2014
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid,5,-255.1496,2603.2517,62.85820) ||
!IsPlayerInRangeOfPoint(playerid,5,2576.6807,-1070.7295,69.8322) ||
!IsPlayerInRangeOfPoint(playerid,5,2243.5059,-1397.2430,24.5738) ||
!IsPlayerInRangeOfPoint(playerid,5,2770.6614,-1628.7238,12.1775) ||
!IsPlayerInRangeOfPoint(playerid,5,653.2440,-1619.8318,15)) return MSG(playerid,C_RED,"[ERROR] {FF7777}You have to be infront your gang HQ to unload");
its working only with !IsPlayerInRangeOfPoint(playerid,5,-255.1496,2603.2517,62.85820)
why?
Re: Why Its working only on the first one? -
Jefff - 13.09.2014
Change all || to &&
Re: Why Its working only on the first one? -
Lirbo - 13.09.2014
Quote:
Originally Posted by Jefff
Change all || to &&
|
WTF? why its working?
It's not working like this?:
|| = or
&& = and
Re: Why Its working only on the first one? -
iFarbod - 13.09.2014
pawn Код:
if(!(IsPlayerInRangeOfPoint(playerid,5,-255.1496,2603.2517,62.85820)) ||
!(IsPlayerInRangeOfPoint(playerid,5,2576.6807,-1070.7295,69.8322)) ||
!(IsPlayerInRangeOfPoint(playerid,5,2243.5059,-1397.2430,24.5738)) ||
!(IsPlayerInRangeOfPoint(playerid,5,2770.6614,-1628.7238,12.1775))||
!(IsPlayerInRangeOfPoint(playerid,5,653.2440,-1619.8318,15))) return MSG(playerid,C_RED,"[ERROR] {FF7777}You have to be infront your gang HQ to unload");