SA-MP Forums Archive
Cannot figure out what's wrong. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cannot figure out what's wrong. (/showthread.php?tid=270959)



Cannot figure out what's wrong. - Ben7544 - 22.07.2011

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 .


Re: Cannot figure out what's wrong. - FireCat - 22.07.2011

Response of you're question and your topic
http://pastebin.com/raw.php?i=SJkK7Vw6


Re: Cannot figure out what's wrong. - Ben7544 - 22.07.2011

That's creating another 3DText over the previous one :