4 Really ANNOYING ERRORS.
#1

There are the errors :
PHP код:
(1313) : error 008must be a constant expressionassumed zero
(1313) : error 029invalid expressionassumed zero
(1313) : error 017undefined symbol "LabelN"
(1313) : fatal error 107too many error messages on one line 
Here's the bugged line :
pawn Код:
new Text3D:LabelS[NewHouseID], Text3D:LabelN[NewHouseID];
Everything connected to the line... :
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;
}
Reply


Messages In This Thread
4 Really ANNOYING ERRORS. - by Ben7544 - 22.07.2011, 16:37
Re: 4 Really ANNOYING ERRORS. - by jameskmonger - 22.07.2011, 16:44
Re: 4 Really ANNOYING ERRORS. - by Ben7544 - 22.07.2011, 16:54
Re: 4 Really ANNOYING ERRORS. - by jameskmonger - 22.07.2011, 16:56
Re: 4 Really ANNOYING ERRORS. - by Famalamalam - 22.07.2011, 16:59
Re: 4 Really ANNOYING ERRORS. - by Ben7544 - 22.07.2011, 17:16
Re: 4 Really ANNOYING ERRORS. - by jameskmonger - 22.07.2011, 17:20
Re: 4 Really ANNOYING ERRORS. - by Ben7544 - 22.07.2011, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)