undefined Posted July 19, 2014 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?
undefined Posted July 19, 2014 Author Posted July 19, 2014 Oh! Sorry for my stupid mistake. Im fixed it...
Max+ Posted July 19, 2014 Posted July 19, 2014 he mean remove local form the code , like this itemTimer = guiGridListGetItemData(bufferGrid, row, 2)
Moderators Citizen Posted July 19, 2014 Moderators Posted July 19, 2014 he mean remove local form the code , like this itemTimer = guiGridListGetItemData(bufferGrid, row, 2) Nope, line 21, not line 20.
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