WeeD1 Posted April 12, 2019 Share 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 ) Link to comment
Other Languages Moderators Lord Henry Posted April 12, 2019 Other Languages Moderators Share Posted April 12, 2019 Esse script é server-side ou client-side? Link to comment
Other Languages Moderators Lord Henry Posted April 12, 2019 Other Languages Moderators Share Posted April 12, 2019 Coloque isso antes da linha do fadeCamera: if not isElement (thePlayer) then return end 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