22.07.2011, 16:37
There are the errors :
Here's the bugged line :
Everything connected to the line... :
PHP код:
(1313) : error 008: must be a constant expression; assumed zero
(1313) : error 029: invalid expression, assumed zero
(1313) : error 017: undefined symbol "LabelN"
(1313) : fatal error 107: too many error messages on one line
pawn Код:
new Text3D:LabelS[NewHouseID], Text3D:LabelN[NewHouseID];
pawn Код:
stock Create3DHouse()
{
for(new NewHouseID; NewHouseID<sizeof(Houses); NewHouseID++)
{
if(!Houses[NewHouseID][hExteriorY]) continue;
new string[ 96 ],HouseForSale, HouseNotForSale, WasFSell, WasntFSell;
new Text3D:LabelS[NewHouseID], Text3D:LabelN[NewHouseID];
if(strcmp(Houses[NewHouseID][hOwner], "Nobody", true) == 0)
{
format(string, sizeof(string), "[House] %d\n buy price: %d (/buyhouse)", NewHouseID, Houses[NewHouseID][HousePrice]);
}
else
{
format(string, sizeof(string), "[House]\n %d", NewHouseID);
HouseNotForSale = 1;
WasntFSell = 1;
}
if(HouseForSale == 1)
{
WasFSell = 1;
if(WasntFSell == 1)
{
Delete3DTextLabel(LabelN);
WasntFSell = 0;
}
HouseNotForSale = 0;
LabelS[NewHouseID] = Create3DTextLabel(string,HOUSE_YSELL,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
}
else if(HouseNotForSale == 1)
{
HouseNotForSale = 1;
WasntFSell = 1;
if(WasFSell == 1)
{
Delete3DTextLabel(LabelS);
WasFSell = 0;
}
LabelN[NewHouseID] = Create3DTextLabel(string,HOUSE_NSELL,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
HouseForSale = 0;
}
}
return 1;
}