30.07.2016, 20:26
I try to make this script to take the player city, but it say every time NO
what is wrong?
I put
printf("%s",GetCity(2000,-1000));
printf("%s",GetCity(20,-1));
printf("%s",GetCity(1000,1000));
printf("%s",GetCity(-2000,-2000));
and still say No
What is wrong?
what is wrong?
Код HTML:
stock GetCity(Float:X,Float:Y)
{
new str[50];
if (X <= 1700.8179 && X >= 2903.0476 && Y <= -2860.2761 && Y >= -701.8962) format(str,sizeof(str),"LS");
else if (X <= -2885.0598 && X >= -1405.0571 && Y <= -1021.6824 && Y >= 1436.9240)format(str,sizeof(str),"SF");
else if (X <= 130.7416 && X >= 1447.1925 && Y <= -2843.7100 && Y >= -799.4094) format(str,sizeof(str),"LV");
else format(str,sizeof(str),"NO");
return str;
}
printf("%s",GetCity(2000,-1000));
printf("%s",GetCity(20,-1));
printf("%s",GetCity(1000,1000));
printf("%s",GetCity(-2000,-2000));
and still say No
What is wrong?

