23.09.2011, 14:07
Tipo coloquei colorido as info das casas, mais sу que quando termino e copilo normal quando vou la nas casas ele aparece tudo normal mais a ultima linha fica imcompleta tipo era pra ficar assim
Para comprar digite /comprarcasa
mais ficam assim
Para comprar digite /comp
Para comprar digite /comprarcasa
mais ficam assim
Para comprar digite /comp
PHP код:
//Create3dTexts();
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]);
format(gstring, sizeof(gstring), "{33FF00}Casa A Venda\nTipo: {FF0000}%s\n{33FF00}Valor: {FF0000}R$%d\n{33FF00}Nivel: {FF0000}%d\nPara comprar digite /comprarcasa",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
}
if(HouseInfo[h][hOwned] == 1) {
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
if(HouseInfo[h][hRentabil] == 0) {
format(gstring, sizeof(gstring), "{33FF00}Dono: {FF0000}%s\n{33FF00}Nivel: {FF0000}%d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
}
else {
format(gstring, sizeof(gstring), "{33FF00}Dono: {FF0000}%s\n{33FF00}Aluguel: {FF0000}R$%d\n{33FF00}Nivel: {FF0000}%d\nDigite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(gstring,COR_GRO,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
}
}
}