06.06.2012, 19:25
i made a thingy and but only "Afacere de Vanzare" and bellow an "Nu"
pawn Code:
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string, sizeof(string), "Afacere de vanzare\nNume Afacere: %s\n Afacere ID: %d \nPret: $%d \nLevel Necesar: %d",BizzInfo[h][bMessage], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
Create3DTextLabel(string,0x006400FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "%s \nProprietarul: %s \nNume Afacere: %d \nExtortion: %s \n Intrare Fee: $%d. \n Pentru a intra in bizz scrieti /enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
Create3DTextLabel(string,0x00FFFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
CreateDynamicPickup(1274,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
}