Hey guys im working on a mod i used to maintane way back when (last version was 30100)
i got it 98% working still one error and a few tweeks to do yet
anyway im getting a error and i cant figure out how to fix it
Here's the error
Code:
Date: 2011-06-04 03:45:06
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\SetWrangler\SetWrangler.lua line 718:
attempt to perform arithmetic on local 'elapse' (a nil value)
Debug:
[C]: ?
SetWrangler\SetWrangler.lua:718: SetWrangler_OnUpdate()
[string "*:OnUpdate"]:1:
[string "*:OnUpdate"]:1
AddOns:
Swatter, v5.12.5165 (QuirkyKiwi)
SetWrangler, v
Titan, v5.0.5.40100 - Revision 519
BlizRuntimeLib_enUS v4.1.0.40100 <us>
(ck=81)
Heres the code
from the Lua (line 718 is highlighted)
Code:
function SetWrangler_OnUpdate(self, elapse)
if (gDoCacheTimer == 1) then
--dout("Update: "..gCacheTimer);
gCacheTimer = gCacheTimer + elapse;
if (gCacheTimer > SW_CACHE_TIMER) then
gDoCacheTimer = 0;
gCacheAttempts = gCacheAttempts + 1;
if (gCacheAttempts <= SW_MAX_CACHE_ATTEMPTS) then
gCacheData.callback(gSelectedSet,1);
else
nameLocationText:SetText("Failed to load link...");
end
end
end
end
from the xml
Code:
<OnUpdate>
SetWrangler_OnUpdate(self, elapse);
</OnUpdate>
thanks for any and all help.