07.10.2012, 11:04
Code:
for(new h = 0; h < sizeof(HouseInfo); h++) //// { if(PlayerToPoint(10.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(HouseInfo[h][hOwned] == 1) { new string[700]; if(HouseInfo[h][hRentabil] == 0) { Delete3DTextLabel(Text3D:HouseLabel[h]); format(string, sizeof(string), "",HouseInfo[h][hOwner],HouseInfo[h][hLevel]); HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1); } else { Delete3DTextLabel(Text3D:HouseLabel[h]); format(string, sizeof(string), "ID %d {0080FF}Detinator: {FFFFFF}%s \n {80FF00}Chirie: {FFFFFF}%d$ \n {80FF00}/rentroom",h,HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1); } return 1; } else { Delete3DTextLabel(Text3D:HouseLabel[h]); format(string,sizeof(string),"ID %d {0080FF}Casa de vanzare \n Pretul:{FFFFFF} %d$ \n {0080FF}Level:{FFFFFF} %d \n {0080FF}/buyhouse",h,HouseInfo[h][hValue],HouseInfo[h][hLevel]); HouseLabel[h] = Create3DTextLabel(string ,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1); } return 1; } }