i have a code:
Code:
for container=0, 4, 1 do
for slot=1, GetContainerNumSlots( container ), 1 do
local texture = GetContainerItemInfo( container, slot );
if( texture ) then
MyTemp_Tooltip:ClearLines();
MyTemp_Tooltip:SetBagItem( container, slot );
ItemName = MyTemp_TooltipTextLeft1:GetText();
if ItemName then
Temp_Message( ItemName ); -- display message in chat frame
end;
end;
end;
end;
when im start gaming all ok. I have a message with 'ItemName'. But sometime i dont get message, before i type "/script ReloadUI();"