Cannot figure out what's wrong.
#1

I am trying to make it to update, but it dosent updates shit IG.
Even if the house has been buyed.

I am supposing that I need variable as an array, but no clue how to do it.
pawn Код:
stock Create3DHouse()
{
    for(new NewHouseID; NewHouseID<sizeof(Houses); NewHouseID++)
    {
    if(!Houses[NewHouseID][hExteriorY]) continue;
    new string[ 96 ], Text3D:Checka;
        if(strcmp(Houses[NewHouseID][hOwner], "Nobody", true) == 0)
    {
        format(string, sizeof(string), "[House] %d\n buy price: %d (/buyhouse)", NewHouseID, Houses[NewHouseID][HousePrice]);
        Checka = Create3DTextLabel(string,HOUSE_YSELL,Houses[NewHouseID][hExteriorX],Houses[NewHouseID][hExteriorY],Houses[NewHouseID][hExteriorZ],30.0,0,1);
        }
        else
        {
        format(string, sizeof(string), "[House]\n %d", NewHouseID);
        Update3DTextLabelText(Checka,HOUSE_NSELL,string);
        }
    }
    return 1;
}
Thank you .
Reply


Messages In This Thread
Cannot figure out what's wrong. - by Ben7544 - 22.07.2011, 13:04
Re: Cannot figure out what's wrong. - by FireCat - 22.07.2011, 13:16
Re: Cannot figure out what's wrong. - by Ben7544 - 22.07.2011, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)