07.11.2010, 11:43
Hello everybody my enterprise system is not working well i put 3DText to display the information so that it only shows the first company formed and others not.
pawn Код:
for(new I=0;I<=EmpCount;I++)
{
if(Empresa[I][Owned] == true)
{
format(string1, sizeof(string1), "Empresa Dono: %s\nPreco de Compra Gold: %d\n Preco de Venda Gold: %d",Empresa[I][EmpOwner],Empresa[I][EmpPreco], Empresa[I][EmpVenda]);
EMPC = Create3DTextLabel(string1,COLOR_RED,Empresa[I][PickupXX], Empresa[I][PickupYY], Empresa[I][PickupZZ]+0.75,15,0,1);
}
if(Empresa[I][Owned] == false)
{
format(string1, sizeof(string1), "Empresa Dono: Ninguem\nPreco de Compra Gold: %d\n Preco de Venda Gold: %d",Empresa[I][EmpPreco], Empresa[I][EmpVenda]);
EMPV = Create3DTextLabel(string1,COLOR_RED,Empresa[I][PickupXX], Empresa[I][PickupYY], Empresa[I][PickupZZ]+0.75,15,0,1);
}
return 1;
}