SA-MP Forums Archive
How to update 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)
+--- Thread: How to update 3d text (/showthread.php?tid=382197)



How to update 3d text - PaulDinam - 02.10.2012

How can i update 3d text label
hol = Create3DTextLabel("House Owned\nStatus: Locked",COLOR_GREEN,HouseInfo[idx][hEntrancex],HouseInfo[idx][hEntrancey],HouseInfo[idx][hEntrancez]+0.3,7,0);

like a command for updating this for other text.

this is doesn't works for me
Update3DTextLabelText(hol, COLOR_GREEN, "text");


Re: How to update 3d text - kizla - 02.10.2012

This should works fine... did you put somewhere

pawn Код:
new Text3D:hol;



Re: How to update 3d text - PaulDinam - 02.10.2012

i already did it


Re: How to update 3d text - CmZxC - 02.10.2012

is the "hol" defined as :
new hol;
or
new Text3D:hol;
?


Re: How to update 3d text - PaulDinam - 02.10.2012

new Text3D:hol;
it's a house system like after the player doing /buyhouse the textdraw will be updated


Re: How to update 3d text - CmZxC - 02.10.2012

If i understand your code correctly you are trying to create a single 3dtext for every house.

I suggest :
add "Text3D:h3D" to enum "HouseInfo"

replace "hol" with :

HouseInfo[idx][h3D] = Create3DTextLabel....

Update3DTextLabelText(HouseInfo[idx][h3D], COLOR_GREEN, "text");


Re: How to update 3d text - PaulDinam - 02.10.2012

what do you mean by
add "Text3D:h3D" to enum "HouseInfo"


Re: How to update 3d text - CmZxC - 02.10.2012

Search for "new HouseInfo"
locate something like :
pawn Код:
new HouseInfo[MAX_HOUSES][-somethinghere-];
after that, look for "enum -somethinghere", but replace -somethinghere- with word written between the []
then it should look something like:

pawn Код:
enum -somethinghere
{
      bunch of other stuff similar to:
      hEntrancex,
      hEntrancey,
      hEntrancez
};
add "Text3D:h3D" between { and }; like the other ones :

pawn Код:
enum -somethinghere-
{
      hEntrancex,
      Text3D:h3D,
      hEntrancey
};



Re: How to update 3d text - PaulDinam - 02.10.2012

okay i made 3d labels but after a command how do i update
there is no such symbol idx
Update3DTextLabelText(HouseInfo[252][h3D], COLOR_GREEN, "House Owned\nStatus: Open");

and this is not working too.