How to update 3d text
#1

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");
Reply
#2

This should works fine... did you put somewhere

pawn Код:
new Text3D:hol;
Reply
#3

i already did it
Reply
#4

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

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

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");
Reply
#7

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

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
};
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)