SA-MP Forums Archive
Help 3D text - 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: Help 3D text (/showthread.php?tid=170364)



Help 3D text - DarkPower - 22.08.2010

I try to make under "OnGameModeInit()" loop for 3d text on house pickup, this code

pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            format(string1, sizeof(string), "[Za prodaju]\n %d$",HouseInfo[h][hValue]);
            housesale = Create3DTextLabel(string1,0xFF0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            format(string1, sizeof(string), "[Vlasnik]\n%s",HouseInfo[h][hOwner]);
            Create3DTextLabel(string1,0xFF0000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
            pickups++;
        }
    }
And i press F5 and i compile mode and when i join game and go on first house i dont see any text :S can someone help ? Please


Re: Help 3D text - Hiddos - 22.08.2010

Basically, you're not loading anything, you're only creating the string that contains the house file location.

Do you have any LoadHouse code?


Re: Help 3D text - DarkPower - 22.08.2010

Thank you i know what are you trying to say, i will make this under code what lodas houses ( propery ) tnx