08.07.2015, 11:45
PHP код:
new PropertyString[256];
for(new h = 1; h <= housess; h++)
{
if(HouseInfo[h][hOwned] == 0)
{
DestroyDynamic3DTextLabel(HouseLabel[h]);
format(PropertyString, sizeof(PropertyString),"{347235}House ID: {FFFFFF}%d \n{347235}Aceasta casa este de vanzare \nDescriere: {FFFFFF}%s \n{347235}Valoare: {FFFFFF}$%s \n{347235}Level: {FFFFFF}%d \n{347235}Pentru a cumpara proprietatea\ntasteaza /buyhouse",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
HouseLabel[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 0, -1, -1, 150.0 );
}
else if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 1)
{
DestroyDynamic3DTextLabel(HouseLabel[h]);
format(PropertyString, sizeof(PropertyString),"{FFFFFF}%s\n {347235}House ID: {FFFFFF}%d \n{347235}Proprietar: {FFFFFF}%s \n{347235}Chirie: {FFFFFF}$%s \n{347235}Level: {FFFFFF}%d \n{347235}Pentru a inchiria proprietatea\ntasteaza /rentroom",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
}
else
{
DestroyDynamic3DTextLabel(HouseLabel[h]);
format(PropertyString, sizeof(PropertyString),"{FFFFFF}%s\n {347235}House ID: {FFFFFF}%d \n{347235}Proprietar: {FFFFFF}%s \n{347235}Level: {FFFFFF}%d",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner], HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
}
}
}
for(new h = 1; h <= bussines; h++)
{
if(BizzInfo[h][bOwned] == 0)
{
DestroyDynamic3DTextLabel(BizzLabel[h]);
format(PropertyString, sizeof(PropertyString),"{3BA158}Bizz ID: {B5B5B5}%d \n{B5B5B5}%s \n{3BA158}Afacere de vanzare \n {3BA158}Valoare: {B5B5B5}%s \n{3BA158}Level: {B5B5B5}%d \n{3BA158}Pentru a cumpara afacerea\ntasteaza /buybiz",h,BizzInfo[h][bMessage],FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
else if(BizzInfo[h][bOwned] == 1)
{
DestroyDynamic3DTextLabel(BizzLabel[h]);
format(PropertyString, sizeof(PropertyString),"{3BA158}Bizz ID: {B5B5B5}%d \n{B5B5B5}%s \n{3BA158}Afacere detinuta de {B5B5B5}%s \n{3BA158}Cost intrare: {B5B5B5}$%s\n{3BA158}Level:{B5B5B5} %d\n{3BA158}Apasa F pentru a intra",h,BizzInfo[h][bMessage],BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]),BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 1; h <= sbiss; h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
DestroyDynamic3DTextLabel(SBizzLabel[h]);
format(PropertyString, sizeof(PropertyString),"{3BA158}SBizz ID: {B5B5B5}%d \n{3BA158}%s \n{3BA158}Afacerea este de vanzare \n{3BA158}Valoare:{B5B5B5} $%s \n{3BA158}Level:{B5B5B5} %d \n{3BA158}Pentru a cumpara afacerea\n tasteaza /buybiz",h,SBizzInfo[h][sbMessage],FormatNumber(SBizzInfo[h][sbBuyPrice]),SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
else if(SBizzInfo[h][sbOwned] == 1)
{
DestroyDynamic3DTextLabel(SBizzLabel[h]);
format(PropertyString, sizeof(PropertyString),"{3BA158}SBizz ID: {B5B5B5}%d \n{3BA158}%s \n{3BA158}Afacere detinuta de {B5B5B5}%s\n{3BA158}Cost:{B5B5B5} $%s\n{3BA158}Level:{B5B5B5} %d",h,SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],FormatNumber(SBizzInfo[h][sbEntranceCost]),SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
CreateDynamicPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}
PHP код:
RG-RP.pwn(14800) : warning 213: tag mismatch
PHP код:
HouseLabel[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 0, -1, -1, 150.0 );