1 random nearly house(problem with code)
#1

Hello, i want to get 1 random nearly houses, but it doesnt work.

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;
		}
	}
I'm begginner of scripting. Sorry for my english
Reply


Messages In This Thread
1 random nearly house(problem with code) - by sianbg - 27.09.2013, 06:51
Re: 1 random nearly house(problem with code) - by Accord - 27.09.2013, 07:02
Re: 1 random nearly house(problem with code) - by sianbg - 27.09.2013, 07:09
Re: 1 random nearly house(problem with code) - by Accord - 27.09.2013, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)