Jump to content

Problem


xeon17

Recommended Posts

I have problem with my script , nothing in de-bug , when i write /eventodeagle nothing happen.

function mensagemEvento ( ) 
local accountname = getAccountName (getPlayerAccount(thePlayer)) 
if (isObjectInACLGroup ( "user."..accountname, aclGetGroup ( "Admin" ) )) then     
outputChatBox ( "#00FFFFUm To Enter the Event write /participar in chat", getRootElement(), 255, 0, 0, true ) 
end 
addCommandHandler ( "eventodeagle", mensagemEvento ) 
end 

in acl.xml , i'm in Admin Group .

Link to comment
function mensagemEvento ( thePlayer ) -- You forgot to defien 'thePlayer' 
    local accountname = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if (isObjectInACLGroup ( "user.".. accountname, aclGetGroup ( "Admin" ) )) then     
        outputChatBox ( "#00FFFFUm To Enter the Event write /participar in chat", getRootElement(), 255, 0, 0, true ) 
    end 
end 
addCommandHandler ( "eventodeagle", mensagemEvento ) -- This has to go after you close the function with the 'end' 

Read comments.

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