Ich habe das Problem, dass wenn ich einen 3D Text Label erstelle (was auch funktioniert, wie es soll), dass manchmal
die Texte der Labels nicht die sind die ich eingetragen habe sondern, Hausbiz blabla.
Alle Labels werden normal erstellt (ohne eine ID zugewiesen zu bekommen) außer das Biz:
for(new b = 0; b < sizeof(BizzInfo); b++)
{
if(BizzInfo[b][bOwned] == 0) {
AddStaticPickup(1277, 1, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]);
pickups++;
}
if(BizzInfo[b][bOwned] == 1) {
AddStaticPickup(1277, 1, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]);
pickups++;
}
format(string, sizeof(string), "/----/ [Bizz ID: %d] /----/\nName: %s\nBesitzer: %s\nPreis: %d $\nEintritt: %d $\nProdukte: %d / %d",b,BizzInfo[b][bMessage],BizzInfo[b][bOwner],BizzInfo[b][bBuyPrice],BizzInfo[b][bEntranceCost],BizzInfo[b][bProducts],BizzInfo[b][bMaxProducts]);
BizzInfo[b][B_text] = Create3DTextLabel(string,COLOR_LIGHTBLUE,BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ],18.0,0,0);
}
Falls ein Biz gekauft wird:
.....
Update3DTextLabelText(BizzInfo[b][B_text],COLOR_YELLOW,string);
......
Wo könnte das Problem liegen? Es kommt nicht immer vor.