11.06.2014, 16:58
new businesstype[140];
if(Businesses[idx][BizType] != 0)
{
if(Businesses[idx][BizType] == 1) { businesstype = "Restaurante"; }
else if(Businesses[idx][BizType] == 2) { businesstype = "Companhia Telefonica"; }
else if(Businesses[idx][BizType] == 3) { businesstype = "Loja 24-7"; }
else if(Businesses[idx][BizType] == 4) { businesstype = "Ammunation"; }
else if(Businesses[idx][BizType] == 5) { businesstype = "Advertising"; }
else if(Businesses[idx][BizType] == 6) { businesstype = "Loja de Roupa"; }
else if(Businesses[idx][BizType] == 7) { businesstype = "Bar/Club"; }
else if(Businesses[idx][BizType] == { businesstype = "Farmacia"; }
else if(Businesses[idx][BizType] == 9) { businesstype = "Stand"; }
else if(Businesses[idx][BizType] == 10) { businesstype = "Casa de Emprestimos"; }
else if(Businesses[idx][BizType] == 11) { businesstype = "Entretenimento"; }
else if(Businesses[idx][BizType] == 12) { businesstype = "Quinta"; }
}
else { businesstype = "None Set"; }
if(Businesses[idx][BizPrice] != 0) // Don't create the business icon if the price is 0.
{
if(Businesses[idx][Owned] == 0)
{
Businesses[idx][PickupID]=CreateStreamPickup(1272, 1, Businesses[idx][EnterX], Businesses[idx][EnterY], Businesses[idx][EnterZ],PICKUP_RANGE);
format(string, sizeof(string), "Este negocio esta para venda!\nNome do negocio: %s \nTipo de negocio: %s \nPreco: $%d",Businesses[idx][BusinessName],businesstype,Businesses[idx][BizPrice]);
Businesses[idx][dcoisolabel] = Create3DTextLabel(string,COLOR_GREEN,Businesses[idx][EnterX],Businesses[idx][EnterY],Businesses[idx][EnterZ],15.0, Businesses[idx][EnterWorld]);
}
else if(Businesses[idx][Owned] == 1)
{
Businesses[idx][PickupID]=CreateStreamPickup(1239, 1, Businesses[idx][EnterX], Businesses[idx][EnterY], Businesses[idx][EnterZ],PICKUP_RANGE);
format(string, sizeof(string), "Nome de negocio: %s \ntipo de negocio: %s \nProprietario: %s\nEntrada: $%d",Businesses[idx][BusinessName],businesstype,Businesses[idx][Owner],Businesses[idx][EntranceCost]);
Businesses[idx][dcoisolabel] = Create3DTextLabel(string,COLOR_GREEN,Businesses[idx][EnterX],Businesses[idx][EnterY],Businesses[idx][EnterZ],15.0, Businesses[idx][EnterWorld]);
}
}
idx++;
}
fclose(file);
}
return 1;
}
if(Businesses[idx][BizType] != 0)
{
if(Businesses[idx][BizType] == 1) { businesstype = "Restaurante"; }
else if(Businesses[idx][BizType] == 2) { businesstype = "Companhia Telefonica"; }
else if(Businesses[idx][BizType] == 3) { businesstype = "Loja 24-7"; }
else if(Businesses[idx][BizType] == 4) { businesstype = "Ammunation"; }
else if(Businesses[idx][BizType] == 5) { businesstype = "Advertising"; }
else if(Businesses[idx][BizType] == 6) { businesstype = "Loja de Roupa"; }
else if(Businesses[idx][BizType] == 7) { businesstype = "Bar/Club"; }
else if(Businesses[idx][BizType] == { businesstype = "Farmacia"; }
else if(Businesses[idx][BizType] == 9) { businesstype = "Stand"; }
else if(Businesses[idx][BizType] == 10) { businesstype = "Casa de Emprestimos"; }
else if(Businesses[idx][BizType] == 11) { businesstype = "Entretenimento"; }
else if(Businesses[idx][BizType] == 12) { businesstype = "Quinta"; }
}
else { businesstype = "None Set"; }
if(Businesses[idx][BizPrice] != 0) // Don't create the business icon if the price is 0.
{
if(Businesses[idx][Owned] == 0)
{
Businesses[idx][PickupID]=CreateStreamPickup(1272, 1, Businesses[idx][EnterX], Businesses[idx][EnterY], Businesses[idx][EnterZ],PICKUP_RANGE);
format(string, sizeof(string), "Este negocio esta para venda!\nNome do negocio: %s \nTipo de negocio: %s \nPreco: $%d",Businesses[idx][BusinessName],businesstype,Businesses[idx][BizPrice]);
Businesses[idx][dcoisolabel] = Create3DTextLabel(string,COLOR_GREEN,Businesses[idx][EnterX],Businesses[idx][EnterY],Businesses[idx][EnterZ],15.0, Businesses[idx][EnterWorld]);
}
else if(Businesses[idx][Owned] == 1)
{
Businesses[idx][PickupID]=CreateStreamPickup(1239, 1, Businesses[idx][EnterX], Businesses[idx][EnterY], Businesses[idx][EnterZ],PICKUP_RANGE);
format(string, sizeof(string), "Nome de negocio: %s \ntipo de negocio: %s \nProprietario: %s\nEntrada: $%d",Businesses[idx][BusinessName],businesstype,Businesses[idx][Owner],Businesses[idx][EntranceCost]);
Businesses[idx][dcoisolabel] = Create3DTextLabel(string,COLOR_GREEN,Businesses[idx][EnterX],Businesses[idx][EnterY],Businesses[idx][EnterZ],15.0, Businesses[idx][EnterWorld]);
}
}
idx++;
}
fclose(file);
}
return 1;
}