So for whatever reason, probably a stupid one, I can't get my business 3D text labels to show up.
Код:
new PropertyString[256];
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"For Sale! \n %s \n Bizz ID: %d \n Price: $%d \n Level Needed: %d \n To Buy This, Type /buybiz",BizzInfo[h][bMessage], BizzInfo[h][bBizId], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
biz1[h] = Create3DTextLabel(PropertyString ,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
return 1;
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Bizz ID: %d \n Extortion: %s \n Entering Fee: $%d. \n To Enter This, press enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bBizId], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
biz1[h] = Create3DTextLabel(PropertyString ,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
return 1;
}
}
I see just one error, is MAX_PLAYERS in biz1. Instead MAX_PLAYERS should be the number of businesses.