20.07.2011, 22:41
Hey! I have a problem. If i buy a house the Create3DTextLabel don't change.
I have tried Delete3DTextLabel in cmds like that /buyhouse and /sellhouse. I have got that when i use the buy cmd then the housesale do not delete and the i have two Create3DTextLabel. I somebody can me help the i will be happy
. But now it is fucked up :S
pawn Код:
new Text3D:housesale
new Text3D:houseinfo
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(string4, sizeof(string4), "%s\nSale: %d Saki",HouseInfo[h][hDiscription],HouseInfo[h][hValue]);
housesale = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
}
else if(HouseInfo[h][hOwned] == 1)
{
format(string4, sizeof(string4), "%s\n Owner: %s",HouseInfo[h][hDiscription], HouseInfo[h][hOwner]);
houseinfo = Create3DTextLabel(string4,0xF9A406FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],15,0,1);
}
}
