Problem with update 3d label(s) -
actiwe - 26.01.2010
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 ?
Re: Problem with update 3d label(s) -
Rac3r - 26.01.2010
Код:
Update3DTextLabelText(BizLabel, COLOR_BLUE, string);
Re: Problem with update 3d label(s) -
actiwe - 26.01.2010
Still doesn't update.
I'm sure that command works, becouse I have another thing that changes while I type that command.
Re: Problem with update 3d label(s) -
actiwe - 27.01.2010
And looking for help still
Re: Problem with update 3d label(s) -
bajskorv123 - 27.01.2010
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.
|
Re: Problem with update 3d label(s) -
actiwe - 27.01.2010
I'm sorry

. It was 10 hours old.
Re: Problem with update 3d label(s) -
bajskorv123 - 27.01.2010
Okay but, sorry I don't know what's wrong with your 3d label update.
Re: Problem with update 3d label(s) -
mansonh - 27.01.2010
Код:
Update3DTextLabelText(Text3D:BizLabel, COLOR_BLUE, string);
->
Код:
Update3DTextLabelText(BizLabel, COLOR_BLUE, string);
?
Re: Problem with update 3d label(s) -
actiwe - 27.01.2010
You're offering same solutsion as Rac3r did, ut it doesn't update .
Re: Problem with update 3d label(s) -
actiwe - 27.01.2010
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 ?