22.07.2011, 13:04
I am trying to make it to update, but it dosent updates shit IG.
Even if the house has been buyed.
I am supposing that I need variable as an array, but no clue how to do it.
Thank you .
Even if the house has been buyed.
I am supposing that I need variable as an array, but no clue how to do it.
pawn Код:
stock Create3DHouse()
{
for(new NewHouseID; NewHouseID<sizeof(Houses); NewHouseID++)
{
if(!Houses[NewHouseID][hExteriorY]) continue;
new string[ 96 ], Text3D:Checka;
if(strcmp(Houses[NewHouseID][hOwner], "Nobody", true) == 0)
{
format(string, sizeof(string), "[House] %d\n buy price: %d (/buyhouse)", NewHouseID, Houses[NewHouseID][HousePrice]);
Checka = Create3DTextLabel(string,HOUSE_YSELL,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
}
else
{
format(string, sizeof(string), "[House]\n %d", NewHouseID);
Update3DTextLabelText(Checka,HOUSE_NSELL,string);
}
}
return 1;
}