Is this possible?
#3

Quote:
Originally Posted by RxErT
Посмотреть сообщение
PHP код:
new pos1 x,y,z;
new 
pos2 x,y,z;
if (
IsPlayerInRangeOfPoint(playerid7.0pos1 or pos2)) 
    {
        
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    } 
Use this || or &&

Like this Example:

PHP код:
new pos1 x,y,z;
new 
pos2 x,y,z;
if (
IsPlayerInRangeOfPoint(playerid7.0pos1 || pos2)) 
    {
        
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    } 
PHP код:
new pos1 x,y,z;
new 
pos2 x,y,z;
if (
IsPlayerInRangeOfPoint(playerid7.0pos1 && pos2)) 
    {
        
SendClientMessage(playerid,0xFFFFFFFF,"You are near the stadium entrance!");
    } 
Thanks!

can i also use more than 2 pos? like pos1 || pos2 || pos3 || pos4 ?
Reply


Messages In This Thread
Is this possible? - by akib - 25.05.2017, 07:30
Re: Is this possible? - by RxErT - 25.05.2017, 07:35
Re: Is this possible? - by akib - 25.05.2017, 07:38
Re: Is this possible? - by asri - 25.05.2017, 07:53
Re: Is this possible? - by Burridge - 25.05.2017, 08:47
Re: Is this possible? - by Vince - 25.05.2017, 08:48
Re: Is this possible? - by akib - 25.05.2017, 09:04
Re: Is this possible? - by CheezIt - 25.05.2017, 19:20
Re: Is this possible? - by saffierr - 26.05.2017, 07:17
Re: Is this possible? - by DRIFT_HUNTER - 26.05.2017, 08:59

Forum Jump:


Users browsing this thread: 3 Guest(s)