WeeD1 Posted April 12, 2019 Posted April 12, 2019 Estou com um problema com isso, alguém que poderia me ajudar please? WARNING: Teleport\teleports.lua:6: Bad argument @ 'fadeCamera' [Expected element at argument 1] commando = { } tempo = 1000 function tele (thePlayer) fadeCamera(thePlayer, false, 0.5) setTimer(fadeCamera, 1000, 1, thePlayer, true) if (commando[thePlayer]) then return end setTimer( function(thePlayer) if not (isElement(thePlayer)) then return end setElementPosition ( thePlayer, 2501, -1674, 13 ) end, tempo, 1, thePlayer) commando[thePlayer] = true setTimer( function() commando[thePlayer] = false end, tempo*2, 1) end addCommandHandler ( "cj", tele )
Moderators Lord Henry Posted April 12, 2019 Moderators Posted April 12, 2019 Esse script é server-side ou client-side? Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
Moderators Lord Henry Posted April 12, 2019 Moderators Posted April 12, 2019 Coloque isso antes da linha do fadeCamera: if not isElement (thePlayer) then return end Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
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