21.07.2011, 02:33
pawn Код:
stock Create3DHouse()
{
for(new NewHouseID; NewHouseID<sizeof(Houses); NewHouseID++)
{
if(!Houses[NewHouseID][hExteriorY]) continue;
new string[ 96 ];
if(Houses[NewHouseID][HousePrice] == -1)
{
format(string, sizeof(string), "House %d", h);
Create3DTextLabel(string,RED,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
}
else
{
format(string, sizeof(string), "House %d\n Price: %d", h, Houses[h][HousePrice]);
Create3DTextLabel(string,ADMIN_GREEN,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0);
}
}
return 1;
}