25.11.2010, 05:48
tipo, os 3dtextlabel pega tudo certinho, mas quando eu compro uma casa o 3dtext fica o mesmo que a casa a venda =x
CODE:
ALGUEM AJUDA PLZ!
CODE:
pawn Code:
#define MAX_CASAS 500
new Text3D:HouseLabel[MAX_CASAS];
pawn Code:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
new Casa[128];
format(Casa, sizeof(Casa), "[CASA A VENDA]\nNome: %s \nNнvel: %d\nPreзo: US$%d\nUse /comprarcasa para esta propriedade.",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hValue]);
HouseLabel[h] = Create3DTextLabel(Casa,COLOR_GRAD4,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10,0,1);
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
new Casa2[128];
format(Casa2, sizeof(Casa2), "[CASA]\nNome: %s \nNнvel: %d\nDono: %s\nUse /alugarquarto para alugar um quarto nesta propriedade.",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hOwner]);
HouseLabel[h] = Create3DTextLabel(Casa2,COLOR_GRAD4,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10,0,1);
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
ALGUEM AJUDA PLZ!