Jump to content

How to use someone name in other function?


Recommended Posts

Hi guys.

Im work on the a new system.

Im get the this error:

kZjlN7.png

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...