Jump to content

Estou com este erro alguem ajudar ?


Recommended Posts

function PilotoDeHelicopteroAirNew ( player )
      accountname = getAccountName (getPlayerAccount(player))
      if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
        TudoInvisivel ()
        setElementVisibleTo ( PilotoDeHelicoptero, source, true )
        setElementData ( source, "AirNew>Encaminhamento", "Piloto De Helicoptero" )
        MensagemAirNewSCR ( "Emprego: Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Minimapa", "success" )
        triggerClientEvent ( source, "AirNew>FecharAgencia", root )
        setElementData ( source, "Emprego", false )
    end
end
addEvent( "Encaminhar>PilotoDeHelicoptero", true )
addEventHandler( "Encaminhar>PilotoDeHelicoptero", getRootElement(), PilotoDeHelicopteroAirNew )

6ca8ac05e2a08d48db73c36586321ce8.jpg

Fui tentar por emprego para encaminhar por acl esta dando este erro

Link to comment
function PilotoDeHelicopteroAirNew ( player )
	(tostring (player))
      accountname = getAccountName (getPlayerAccount(player))
      if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
        TudoInvisivel ()
        setElementVisibleTo ( PilotoDeHelicoptero, source, true )
        setElementData ( source, "AirNew>Encaminhamento", "Piloto De Helicoptero" )
        MensagemAirNewSCR ( "Emprego: Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Minimapa", "success" )
        triggerClientEvent ( source, "AirNew>FecharAgencia", root )
        setElementData ( source, "Emprego", false )
    end
end
addEvent( "Encaminhar>PilotoDeHelicoptero", true )
addEventHandler( "Encaminhar>PilotoDeHelicoptero", getRootElement(), PilotoDeHelicopteroAirNew )

Assim 

Link to comment
18 hours ago, DNL291 said:

Copiou errado. Falta a função print.

Da este mesmo erro 

 

On 03/12/2019 at 20:47, TavinhoMTA said:

function PilotoDeHelicopteroAirNew ( player )
      accountname = getAccountName (getPlayerAccount(player))
      if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
        TudoInvisivel ()
        setElementVisibleTo ( PilotoDeHelicoptero, source, true )
        setElementData ( source, "AirNew>Encaminhamento", "Piloto De Helicoptero" )
        MensagemAirNewSCR ( "Emprego: Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Minimapa", "success" )
        triggerClientEvent ( source, "AirNew>FecharAgencia", root )
        setElementData ( source, "Emprego", false )
    end
end
addEvent( "Encaminhar>PilotoDeHelicoptero", true )
addEventHandler( "Encaminhar>PilotoDeHelicoptero", getRootElement(), PilotoDeHelicopteroAirNew )

6ca8ac05e2a08d48db73c36586321ce8.jpg

Fui tentar por emprego para encaminhar por acl esta dando este erro

 

Link to comment
  • Other Languages Moderators
function PilotoDeHelicopteroAirNew ( player )
	print (tostring (player))
	accountname = getAccountName (getPlayerAccount(player))
	if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then
		TudoInvisivel ()
		setElementVisibleTo ( PilotoDeHelicoptero, source, true )
		setElementData ( source, "AirNew>Encaminhamento", "Piloto De Helicoptero" )
		MensagemAirNewSCR ( "Emprego: Para Iniciar os Serviços siga o Checkpoint Vermelho em seu Minimapa", "success" )
		triggerClientEvent ( source, "AirNew>FecharAgencia", root )
		setElementData ( source, "Emprego", false )
	end
end
addEvent( "Encaminhar>PilotoDeHelicoptero", true )
addEventHandler( "Encaminhar>PilotoDeHelicoptero", getRootElement(), PilotoDeHelicopteroAirNew )

 

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