15.07.2010, 14:11
Okay I tried doing this:
At top
Function
Now no 3DTextLabels are shown.
At top
pawn Код:
new Text3D:House[500];
pawn Код:
function UpdateHouses()
{
new idx = 0;
while(idx < totalhouses)
{
Delete3DTextLabel(House[idx]);
new string[140];
if(HouseInfo[idx][Owned] == 1)
{
format(string,sizeof(string),"House Name: %s",HouseInfo[idx][Name]);
House[idx] = Create3DTextLabel(string,COLOR_PURPLE,HouseInfo[idx][SpawnX],HouseInfo[idx][SpawnY],HouseInfo[idx][SpawnZ],20.0,0,1);
}
else if(HouseInfo[idx][Owned] == 0)
{
format(string,sizeof(string),"House For Sale!\nName: %s\nPrice: %d\nInterior: %d",HouseInfo[idx][Name],HouseInfo[idx][Price],HouseInfo[idx][Interior]);
House[idx] = Create3DTextLabel(string,COLOR_PURPLE,HouseInfo[idx][SpawnX],HouseInfo[idx][SpawnY],HouseInfo[idx][SpawnZ],20.0,0,1);
}
idx++;
}
return 1;
}