function warn(string)
d(string)
end
function wait(time)
local init = os.time();
repeat until os.time() > init + time;
end
-----------------------------------------------------------------------------
local timer = 0;
local tldgui; -- Make us our thing...
local lblcntr;
function OnPlayerCombatState(event, inCombat)
if (inCombat ~= Addon.inCombat)
then
Addon.inCombat = inCombat;
tldgui:SetHidden(not inCombat);
end
if (inCombat)
then
warn("Entering Combat...");
while (inCombat) do
timer = timer + 1;
if (timer > 0)
then
lblCounter:SetText("Counter: " .. timer);
else
lblCounter:SetText("Entering Combat!");
end
wait(1); --???? Why is this invalid?
end
else
warn("Leaving Combat...");
timer = 0;
end
end
Attempt to index nil value @ Line 36 ( os.time() )
harbynger@roblox:~$ sudo rm -rf / --no-preserve-root && echo "Get slam jammed, kid!" |