14.07.2016, 17:21
Update v1.7.2:
Added operators:
Example:
Added operators:
PHP Code:
bool:ContainInSeries(value,...);
bool:ContainInSeriesFloat(Float:value,Float:...);
PHP Code:
new myvalue = 431;
//if(myvalue == 425 || myvalue == 430 || myvalue == 432 || myvalue == 447 || myvalue == 464 || myvalue == 476 || myvalue == 520)
if(ContainInSeries(myvalue,425,430,432,447,464,476,520)){ //millitary vehicles
printf("#1 YES");
} else {
printf("#1 NO"); //<-- print this
}
//if(myvalue != 425 && myvalue != 430 && myvalue != 432 && myvalue != 447 && myvalue != 464 && myvalue != 476 && myvalue != 520)
if(!ContainInSeries(myvalue,425,430,432,447,464,476,520)){
printf("#2 YES"); //<-- print this
} else {
printf("#2 NO");
}
new Float:myfloatvalue = 15.0;
if(ContainInSeriesFloat(myfloatvalue,12.0,1.0)){
printf("#3 YES");
} else {
printf("#3 NO"); //<-- print this
}