xeon17 Posted January 12, 2014 Share Posted January 12, 2014 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
Castillo Posted January 12, 2014 Share Posted January 12, 2014 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
xeon17 Posted January 12, 2014 Author Share Posted January 12, 2014 Thank you it work 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