for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(stringproperty, sizeof(stringproperty), "[Essa Empresa estб a Venda]\n$%d, Nнvel: %d, Trancado: %d",BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded],BizzInfo[h][bLocked]);
bizzsale = Create3DTextLabel(stringproperty,0x006400FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);
//
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
format(stringproperty, sizeof(stringproperty), "[Empresa Adquirida]\n%s, Nнvel: %d, Trancado: %d, Extorзгo: %s, Entrada: %d",BizzInfo[h][bOwner],BizzInfo[h][bLevelNeeded],BizzInfo[h][bLocked], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
bizzsale = Create3DTextLabel(stringproperty,0x006400FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);
//
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(stringproperty, sizeof(stringproperty), "[Essa Empresa estб a Venda]\n$%d, Nнvel: %d, Trancado: %d",SBizzInfo[h][bBuyPrice],SBizzInfo[h][bLevelNeeded],SBizzInfo[h][bLocked]);
sbizzsale = Create3DTextLabel(stringproperty,0x006400FF,SBizzInfo[h][bEntranceX], SBizzInfo[h][bEntranceY], SBizzInfo[h][bEntranceZ]+1,15,0,1);
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(stringproperty, sizeof(stringproperty), "[EMPRESA]\n%s, Nнvel: %d, Trancado: %d",SBizzInfo[h][bOwner],SBizzInfo[h][bLevelNeeded],SBizzInfo[h][bLocked]);
sbizzsale = Create3DTextLabel(stringproperty,0x006400FF,SBizzInfo[h][bEntranceX], SBizzInfo[h][bEntranceY], SBizzInfo[h][bEntranceZ]+1,15,0,1);
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}
new Text3D:bizzsale;
new Text3D:sbizzsale;
onde vc definiu a variavel bizzsale e sbizzsale vc definiu assim:
pawn Код:
|
new Text3D:bizzsale;
new Text3D:sbizzsale;