23.01.2014, 21:39
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:
Process those before starting the loop.
These two also shouldn't be inside the loop body:
pawn Код:
if(GetPlayerMoney(playerid) >= HouseInfo[i][hPrice])
{
if(pInfo[playerid][House] == 0)
{

