20.06.2013, 16:56
I'm setting new house/business system from another gm.. and i have problem with function for();
i want to set the house/business in to create3dtext when the 2 systems are active only the house system create3dtext shows the business not(when i bought the business the business create3dtext comes,i have onproptextupdate...)
How to set the 2 systems to work to show the icons and text,only the house system works :@,when i replace them the business up of the house the business work,house dont work...PLEASE HELP
this is under ongamemodeinit
i want to set the house/business in to create3dtext when the 2 systems are active only the house system create3dtext shows the business not(when i bought the business the business create3dtext comes,i have onproptextupdate...)
How to set the 2 systems to work to show the icons and text,only the house system works :@,when i replace them the business up of the house the business work,house dont work...PLEASE HELP

pawn Код:
//=================================[TEXTDRAW FOR PROPERTY]======================
for(new h = 0; h < sizeof(HouseInfo); h++)
{
new HouseString[256];
new status[128];
if(HouseInfo[h][hLock] == 0) { status = "Otkluceno"; }
else if(HouseInfo[h][hLock] == 1) { status = "Zakluceno"; }
if(HouseInfo[h][hOwned] == 0)
{
format(HouseString,sizeof(HouseString),"Se Prodava!\n{00C0FF}Cena:{ffffff} %d$\n{00C0FF} Ime:{ffffff} %s\n{00C0FF} Opis:{ffffff} %s \n{00C0FF} Potreben Level:{ffffff} %d\n{00C0FF}/buyhouse", HouseInfo[h][hValue], HouseInfo[h][hDiscription], HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(HouseString ,0x2641FEAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],5);
HousePickup[h] = CreateDynamicPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1)
{
format(HouseString,sizeof(HouseString),"[KUKJA]\n{00C0FF}Gazda:{ffffff} %s\n{00C0FF}Kukja:{ffffff} %s\n{00C0FF} Rent Cena:{ffffff} %s\n{00C0FF} Status:{ffffff} %s\n{00C0FF} Level:{ffffff} %d\n{00C0FF}/enter", HouseInfo[h][hOwner],HouseInfo[h][hDiscription],HouseInfo[h][hDiscription],status,HouseInfo[h][hLevel]);
HouseLabel[h] = CreateDynamic3DTextLabel(HouseString ,0x2641FEAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],5);
HousePickup[h] = CreateDynamicPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new b = 0; b < sizeof(BizzInfo); b++)
{
new BizzString[256];
new status[128];
if(BizzInfo[b][bLocked] == 0) { status = "Otvoreno"; }
else if(BizzInfo[b][bLocked] == 1) { status = "Zatvoreno"; }
if(BizzInfo[b][bOwned] == 0)
{
format(BizzString,sizeof(BizzString),"Se Prodava!\n{00C0FF}Cena:{ffffff} %d$\n{00C0FF} Ime:{ffffff} %s\n{00C0FF} Opis:{ffffff} %s \n{00C0FF} Potreben Level:{ffffff} %d\n{00C0FF}/buybiz", BizzInfo[b][bBuyPrice], BizzInfo[b][bMessage], BizzInfo[b][bDesc], BizzInfo[b][bLevelNeeded]);
BusinessLabel[b] = CreateDynamic3DTextLabel(BizzString ,0x2641FEAA,BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ],5);
BusinessPickup[b] = CreateDynamicPickup(1272, 1, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]);
}
else if(BizzInfo[b][bOwned] == 1)
{
format(BizzString,sizeof(BizzString),"[FIRMA]\n{00C0FF}Gazda:{ffffff} %s\n{00C0FF}Ime:{ffffff} %s\n{00C0FF} Biznis:{ffffff} %s\n{00C0FF} Status:{ffffff} %s\n{00C0FF} Cena Vlez:{ffffff} %d\n{00C0FF}/enter", BizzInfo[b][bOwner],BizzInfo[b][bMessage],BizzInfo[b][bDesc],status,BizzInfo[b][bEntranceCost]);
BusinessLabel[b] = CreateDynamic3DTextLabel(BizzString ,0x2641FEAA,BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ],5);
BusinessPickup[b] = CreateDynamicPickup(1239, 1, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]);
}
}
//==============================================================================