LucasBaker Posted October 29, 2014 Share Posted October 29, 2014 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
Anubhav Posted October 29, 2014 Share Posted October 29, 2014 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
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