View Single Post
Old 15/07/2017, 08:40 AM   #7
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 293
Reputation: 134
Default Re: IF Conditional Sentence.

Quote:
Originally Posted by DarkMaster1998 View Post
Hey.. So i have this if and i can't write more conditions if i do then the compiler gives me an error message (2 Long input).. Should i use array ?? with for loop in the if cond.. or what i have tried but it didn't work.

PHP Code:
if(IsPlayerInRangeOfPoint(playerid20.02177.5725,-1973.2252,13.2218) || IsPlayerInRangeOfPoint(playerid20.0, -2048.5581,173.2598,28.4962) || IsPlayerInRangeOfPoint(playerid20.0, -353.9812,1540.1951,75.5625) || IsPlayerInRangeOfPoint(playerid20.092.0248,-164.9822,2.5938) || IsPlayerInRangeOfPoint(playerid20.0, -1688.0195,1035.4976,45.2109) || IsPlayerInRangeOfPoint(playerid20.0, -1787.5283,1216.6865,25.1250) || IsPlayerInRangeOfPoint(playerid20.0, -2181.6172,712.8118,53.8906))

Press enter.

PHP Code:
if (
    
IsPlayerInRangeOfPoint(playerid20.02177.5725,-1973.2252,13.2218) ||
    
IsPlayerInRangeOfPoint(playerid20.0, -2048.5581,173.2598,28.4962) ||
    
IsPlayerInRangeOfPoint(playerid20.0, -353.9812,1540.1951,75.5625) ||
    
IsPlayerInRangeOfPoint(playerid20.092.0248,-164.9822,2.5938) ||
    
IsPlayerInRangeOfPoint(playerid20.0, -1688.0195,1035.4976,45.2109) ||
    
IsPlayerInRangeOfPoint(playerid20.0, -1787.5283,1216.6865,25.1250) ||
    
IsPlayerInRangeOfPoint(playerid20.0, -2181.6172,712.8118,53.8906))

OneDay is offline   Reply With Quote