Jump to content

help me on this problem ?


Recommended Posts

server.lua

function baseloged( psource ) 
     local usergroup = getAccountName(getPlayerAccount(psource)) 
     if isObjectInACLGroup ( "user."..usergroup, aclGetGroup ( "Bope" ) ) then 
         cancelEvent() 
     else 
         aclGroupAddObject (aclGetGroup("Bope"), "user."..getAccountName(getPlayerAccount(psource))) 
         outputChatBox("#00ffffENTRASTE A BOPE!",psource, 0,0,0, true ) 
     end 
end 
addEvent("baselogin", true) 
addEventHandler("baselogin", getRootElement(), baseloged) 

error on console:

[2015-06-30 15:28:53] WARNING: BaseBope/menu.lua:103: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil]

[2015-06-30 15:28:53] WARNING: BaseBope/menu.lua:103: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean]

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