27.09.2013, 06:51
Hello, i want to get 1 random nearly houses, but it doesnt work.
The code is:
I'm begginner of scripting. Sorry for my english
The code is:
Код:
new rand = random(MAX_HOUSES - 1); while(!(HouseInfo[rand][hExteriorZ] <= 100 && HouseInfo[rand][hExteriorX] > 2402.6104 && HouseInfo[rand][hExteriorX] < 2498.5225 && HouseInfo[rand][hExteriorY] < 1334.343750 && HouseInfo[rand][hExteriorY] > -1644.7028)) { rand++; if(rand == 1400) { rand = 1; } }