for(new h = 0; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Level : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); } else { format(string, sizeof(string), "~w~This House is owned by~n~%s~n~Rent: ]%d Level : %d~n~Type /rentroom to rent a room",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); } GameTextForPlayer(i, string, 5000, 3); return 1; } else {//test format(string, sizeof(string), "~w~This House is for sale~n~Cost: ~g~]%d~n~~w~ Level : %d~n~to buy this house type /buyhouse",HouseInfo[h][hValue],HouseInfo[h][hLevel]); } GameTextForPlayer(i, string, 5000, 3); return 1; } } |