07.04.2016, 15:14
PHP код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(string, sizeof(string), "{00E200}House ID %d\n{00E200}This house is owned by: {FFFFFF}%s \n{00E200}Level: {FFFFFF}%d",HouseInfo[h][hSQLID],HouseInfo[h][hOwner], HouseInfo[h][hLevel]);
UpdateDynamic3DTextLabelText(houser[h], COLOR_HOUSE, string);
}
else if(HouseInfo[h][hRentabil] != 0)
{
format(string, sizeof(string), "{00E200}House ID %d\n{00E200}This house is owned by: {FFFFFF}%s \n{00E200}Rent Price: {FFFFFF}$%s \n{00E200}Level: {FFFFFF}%d \n{00E200}To rent a room type {FFFFFF}/rentroom",HouseInfo[h][hSQLID],HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]);
UpdateDynamic3DTextLabelText(houser[h], COLOR_HOUSE, string)
}
}
else if(HouseInfo[h][hOwned] == 1)
{
format(string, sizeof(string), "{00E200}House ID %d\n{00E200}This house is for sale \n{00E200}Cost: {FFFFFF}$%s \n{00E200}Level: {FFFFFF}%d \n{00E200}To buy this house type {FFFFFF}/buyhouse",HouseInfo[h][hSQLID],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]);
UpdateDynamic3DTextLabelText(houser[h], COLOR_HOUSE, string)
}
else if(HouseInfo[h][hOwned] == 2)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(string, sizeof(string), "{00E200}House ID %d\n{00E200}This House is for sale\nOwned by: {FFFFFF}%s \n{00E200}Level: {FFFFFF}%d\n{00E200}Cost: {FFFFFF}$%s\n{00E200}To buy this house type {FFFFFF}/buyhouse",HouseInfo[h][hSQLID],HouseInfo[h][hOwner], HouseInfo[h][hLevel], FormatNumber(HouseInfo[h][hForosh]));
UpdateDynamic3DTextLabelText(houser[h], COLOR_HOUSE, string);
}
else if(HouseInfo[h][hRentabil] == 1)
{
format(string, sizeof(string), "{00E200}House ID %d\n{00E200}This House is for sale\nOwned by: {FFFFFF}%s \n{00E200}Rent Price: {FFFFFF}$%s\n{00E200}Level: {FFFFFF}%d \n{00E200}Cost: {FFFFFF}$%s\n{00E200}To rent a room type {FFFFFF}/rentroom\n{00E200}To buy this house type {FFFFFF}/buyhouse",HouseInfo[h][hSQLID],HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel], FormatNumber(HouseInfo[h][hForosh]));
UpdateDynamic3DTextLabelText(houser[h], COLOR_HOUSE, string);
}
}
}
and i can`t see house information near house what can i do ?!