undefined Posted July 19, 2014 Share Posted July 19, 2014 Hi guys. Im work on the a new system. Im get the this error: And my code: addEventHandler("onClientMouseEnter", getRootElement(), function(aX, aY) if source == buff30Image then addEventHandler("onClientRender", root, showTimeDx) guiSetAlpha(buff30Image, 1.00) end end) addEventHandler("onClientMouseLeave", getRootElement(), function(aX, aY) if source == buff30Image then removeEventHandler("onClientRender", root, showTimeDx) guiSetAlpha(buff30Image, 0.80) end end) function sayac() -- It's use "onClientRender" event. if not lasttick then lasttick = getTickCount() end local row, col = guiGridListGetSelectedItem(bufferGrid) local itemTimer = guiGridListGetItemData(bufferGrid, row, 2) local itemTime = itemTimer*1000 tick = getTickCount() end function showTimeDx() dxDrawText ( itemTime - (tick - lasttick), 44, sy - 41, sx, sy, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) -- Line 82 end How to fix it? Link to comment
MIKI785 Posted July 19, 2014 Share Posted July 19, 2014 Simply don't make it a local.. Link to comment
undefined Posted July 19, 2014 Author Share Posted July 19, 2014 Oh! Sorry for my stupid mistake. Im fixed it... Link to comment
Max+ Posted July 19, 2014 Share Posted July 19, 2014 he mean remove local form the code , like this itemTimer = guiGridListGetItemData(bufferGrid, row, 2) Link to comment
Moderators Citizen Posted July 19, 2014 Moderators Share Posted July 19, 2014 he mean remove local form the code , like this itemTimer = guiGridListGetItemData(bufferGrid, row, 2) Nope, line 21, not line 20. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now