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?

cd3JDcN.png?1

Posted

O primeiro argumento da sua função addCommandHandler() deve estar entre parênteses (revistar => "revistar"). A propósito, categoria errada, DanteTV.

Software Engineer & Entrepreneur Running Lustrel and VilarikA • Highly engaged on open source community

Posted

Você entendeu errado. Substitua revistar com "seu_comando", de revistar para "revistar", como o Stanley disse.

Please do not PM me with scripting related question nor support, use the forums instead.

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 
) 
  

Daqui pra frente vai ser tudo diferente ♫ ♩

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