Problem with update 3d label(s)
#1

Ok, there is system how these labels came up ongamemodeinit

Код:
for(new h = 0; h <= totBus; h++)
	{
	  new kila[16];
	  if(BizzInfo[h][bLocked] == 1 ) format(kila,sizeof(kila), "Closed");
	  else format(kila,sizeof(kila), "Open");
	  format(string, sizeof(string), "%s\n%s",BizzInfo[h][bMessage], kila);
		BizLabel = Create3DTextLabel(string,COLOR_BLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, 0);
	}
Now, you see i have there name and is bus open and closed.

now i show you changing name code a bit

Код:
new kila[16];
if(BizzInfo[biz][bLocked] == 1 ) format(kila,sizeof(kila), "Closed");
else format(kila,sizeof(kila), "Open");
format(string, sizeof(string), "%s\n%s",BizzInfo[biz][bMessage], kila);
Update3DTextLabelText(Text3D:BizLabel, COLOR_BLUE, string);
All compiles with no warnings/errors..but does not update. Help ?

Reply
#2

Код:
Update3DTextLabelText(BizLabel, COLOR_BLUE, string);
Reply
#3

Still doesn't update.

I'm sure that command works, becouse I have another thing that changes while I type that command.
Reply
#4

And looking for help still
Reply
#5

Quote:
Originally Posted by kaisersouse
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.
Reply
#6

I'm sorry . It was 10 hours old.
Reply
#7

Okay but, sorry I don't know what's wrong with your 3d label update.
Reply
#8

Код:
Update3DTextLabelText(Text3D:BizLabel, COLOR_BLUE, string);
->
Код:
Update3DTextLabelText(BizLabel, COLOR_BLUE, string);
?
Reply
#9

You're offering same solutsion as Rac3r did, ut it doesn't update .
Reply
#10

Actually it is very intresting me..with loop he creats about 50 labels...all labels are named with one tag. How script knows which label is needed to update..I think i have to do creating part again or any ideas ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)