You're nowhere close to any house.
#3

Do not, repeat do not, ever return inside a loop unless you explicitly want to break out of it. Your case: if they're not in range of the very first house you break the loop, not even checking any of the other ones.

These two also shouldn't be inside the loop body:
pawn Код:
if(GetPlayerMoney(playerid) >= HouseInfo[i][hPrice])
            {
                if(pInfo[playerid][House] == 0)
                {
Process those before starting the loop.
Reply


Messages In This Thread
You're nowhere close to any house. - by Tayab - 23.01.2014, 20:56
Re: You're nowhere close to any house. - by Scottas - 23.01.2014, 21:06
Re: You're nowhere close to any house. - by Vince - 23.01.2014, 21:39
Re: You're nowhere close to any house. - by Tayab - 23.01.2014, 23:20
Re: You're nowhere close to any house. - by Tayab - 24.01.2014, 01:22
Re: You're nowhere close to any house. - by Scottas - 24.01.2014, 07:16
Re: You're nowhere close to any house. - by Vince - 24.01.2014, 08:14

Forum Jump:


Users browsing this thread: 1 Guest(s)