27.02.2011, 13:46
pawn Код:
new textocasas[6][50];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
//new textocasas[5][50];
pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
//textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,50.0, -1, 0);
format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.4,50.0, -1, 0);
format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.5,50.0, -1, 0);
format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.6,50.0, -1, 0);
textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.7,50.0, -1, 0);
}
}