26.01.2010, 21:45
Ok, there is system how these labels came up ongamemodeinit
Now, you see i have there name and is bus open and closed.
now i show you changing name code a bit
All compiles with no warnings/errors..but does not update. Help ?
Код:
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 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);