Help 3DText
#4

looks like you put a return inside the loop, if you indent your code properly this will be more obvious

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);
      } else {
           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);
      }
}
Reply


Messages In This Thread
Help 3DText - by [FeK]HigorOliver - 07.11.2010, 11:43
Re: Help 3DText - by Rachael - 07.11.2010, 11:55
Re: Help 3DText - by [FeK]HigorOliver - 07.11.2010, 12:06
Re: Help 3DText - by Rachael - 07.11.2010, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)