Refuel command.
#5

Quote:
Originally Posted by SyS
View Post
I believe
PHP Code:
    if(IsPlayerInRangeOfPoint(playerid5.0572.5297+11400,-2759.7271-10000,13.9872) && IsPlayerInRangeOfPoint(playerid5.012368.1885,-11937.6396,5.5338) && IsPlayerInRangeOfPoint(playerid5.012368.8154,-11943.2422,5.5425) && IsPlayerInRangeOfPoint(playerid5.012371.4863,-11948.7529,5.5312) && IsPlayerInRangeOfPoint(playerid5.012365.1885,-11938.9287,5.5332)) 
should be in OR cases ( || ) instead of logical AND (&&) as all those cases wont be true at same time.

You might meant to do this way if player is in either of these range
PHP Code:
if(IsPlayerInRangeOfPoint(playerid5.0572.5297+11400,-2759.7271-10000,13.9872) || IsPlayerInRangeOfPoint(playerid5.012368.1885,-11937.6396,5.5338) || IsPlayerInRangeOfPoint(playerid5.012368.8154,-11943.2422,5.5425) || IsPlayerInRangeOfPoint(playerid5.012371.4863,-11948.7529,5.5312) || IsPlayerInRangeOfPoint(playerid5.012365.1885,-11938.9287,5.5332)) 
Thanks, I'll test. Working fine. Thank you. Always getting confused with those two .
After re-reading it it indeed makes sense to put || instead of &&.
Reply


Messages In This Thread
Refuel command. - by faff - 13.01.2019, 14:45
Re: Refuel command. - by Kevinas100 - 13.01.2019, 14:46
Re: Refuel command. - by faff - 13.01.2019, 15:14
Re: Refuel command. - by SyS - 13.01.2019, 15:32
Re: Refuel command. - by faff - 13.01.2019, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)