Jump to content

Bad argument OutputchatBox


LucasBaker

Recommended Posts

Bad argument in line 15 to add the player in acl GV M does not appear the message to him

function giveGroove (playerSource, commandName, accountName)  
    if accountName then  
        aclGroupAddObject (aclGetGroup("GV M"), "user."..accountName)  
        outputChatBox ("[sERVER] Player '"..accountName.."' adicionado com sucesso na Gangue Groove Street", playerSource) 
        outputChatBox ("[sERVER] Você foi adicionado a Gangue Groove Street.", accountName) 
    else  
        outputChatBox ("[sERVER] Conta não especificada.", playerSource) 
        outputChatBox ("Correct syntax: /convidargv [accountName]", playerSource) 
    end 
end 
  
addCommandHandler ("convidargv", giveGroove) 

could someone help me?

Link to comment
  
function giveGroove (playerSource, commandName, accountName) 
    if accountName and getAccount(accountName) then 
        aclGroupAddObject (aclGetGroup("GV M"), "user."..accountName) 
        outputChatBox ("[sERVER] Player '"..accountName.."' adicionado com sucesso na Gangue Groove Street", playerSource) 
        outputChatBox ("[sERVER] Você foi adicionado a Gangue Groove Street.", getAccountPlayer(getAccount(accountName))) 
    else 
        outputChatBox ("[sERVER] Conta não especificada.", playerSource) 
        outputChatBox ("Correct syntax: /convidargv [accountName]", playerSource) 
    end 
end 
  
addCommandHandler ("convidargv", giveGroove) 
  

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