08.11.2011, 11:14
Try:
https://sampwiki.blast.hk/wiki/Update3DTextLabelText
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned]==0)
{
format(string, sizeof(string), "House %d\n[De Vanzare]\nPret:${FFFFFF}%d\n{2CDBDE}Level:{FFFFFF}%d",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
//Update3DTextLabelText(Text3D:hTextInfo,0x2CDBDEFF,string);
Update3DTextLabelText(hTextInfo,0x2CDBDEFF,string);
}
else
{
format(string, sizeof(string), "House %d\nOwner:{FFFFFF}%s\n{2CDBDE}Level:{FFFFFF}%d\n{2CDBDE}Rent:${FFFFFF}%d",HouseInfo[h][hOwner],HouseInfo[h][hLevel],HouseInfo[h][hRent]);
//Update3DTextLabelText(Text3D:hTextInfo,0x2CDBDEFF,string);
Update3DTextLabelText(hTextInfo,0x2CDBDEFF,string);
}
}