Jump to content

[DUVIDA]Como deixar nulo ou sem string


Recommended Posts

Posted

Está dando erro de bad argument em

addCommandHandler( revistar, 
    function ( thePlayer ) 
        if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "ComandosPolicias" ) ) then 
        
        else 
        outputChatBox("Você não tem permissão pra usar este comando!", thePlayer, 255, 255, 255, true) 
        end 
    end 
) 

, me disseram que precisa deixar nulo ou sem string, qual comando eu posso usar?

Posted
bom só que preciso deixar nulo no caso, e se eu executar esse comando executa outro que eu estou querendo que precise de acl

Oque você quer fazer? não é possível adicionar um comando "sem um comando".

Posted
tentar colocar acl em um comando que ate agr não está funcionando

Aqui esta sem erros eu testei e funcionou normalmente

addCommandHandler( "revistar", 
    function ( thePlayer ) 
        if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "pm" ) ) then -- se quiser trocar esse grupo de pm para outro e so editar ele 
  
        else 
        outputChatBox("Você não tem permissão pra usar este comando!", thePlayer, 255, 255, 255, true) 
        end 
    end 
) 
  

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