Jump to content

[Help] Cursor Show problem


BieHDC

Recommended Posts

Hello,

if have the following problem in the following script:

WARNING: objdel\objectdeleter.lua:3 Bad argument @ `showCursor´

function delete(source) 
    show = 1 
    showCursor ( source, true) 
end 
  
function obscurename(mouseButton, buttonState, playerWhoClicked,clickPosX,clickPosY,clickPosZ) 
    if show == 1 then 
        destroyElement(source) 
        show = 0 
        showCursor ( playerWhoClicked, false) 
    end 
end 
  
function cursorshow(source) 
        show = 0 
        showCursor ( source, false) 
end 
  
addCommandHandler( "del", delete) 
addCommandHandler( "imstupid", cursorshow) 
addEventHandler( "onElementClicked", getRootElement(), obscurename ) 
  

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...