Alexs Posted July 17, 2013 Share Posted July 17, 2013 esta haciendo exactamente lo mismo que el mio. Cual es la diferencia ? Que yo si creo la función 'starKey'. Link to comment
Alexs Posted July 17, 2013 Share Posted July 17, 2013 Pero realiza Lo mismo xP Estamos haciendo post's inútiles o quieres llegar a algo con mas sentido? Link to comment
AlvareZ_ Posted July 17, 2013 Share Posted July 17, 2013 Bueno en fin, Cualquiera de los dos serviría. @Javier Link to comment
Javier Posted July 17, 2013 Author Share Posted July 17, 2013 Probé el de ambos y me dice lo mismo "Bind.lua:15: Bad 'function' pointer @ 'bindKey'(4)" Link to comment
Alexs Posted July 17, 2013 Share Posted July 17, 2013 Probé el de ambos y me dice lo mismo "Bind.lua:15: Bad 'function' pointer @ 'bindKey'(4)" Perdón, mi error. Prueba: Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function startKey (thePlayer) setElementPosition(thePlayer, posX, posY, posZ) end function Boat ( thePlayer ) if (getElementType(thePlayer) == "player") then bindKey(thePlayer, "F7","down", startKey ) outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", thePlayer, 0, 200, 0, false ) end end addEventHandler ( "onColShapeHit", Area, Boat ) function outBoat ( thePlayer ) if (getElementType(thePlayer) == "player") then unbindKey(thePlayer, "F7","down", startKey) end end addEventHandler ( "onColShapeLeave", Area, outBoat ) Link to comment
Javier Posted July 18, 2013 Author Share Posted July 18, 2013 Gracias Alexs y Alvarez, ahora funciona. Link to comment
Alexs Posted July 18, 2013 Share Posted July 18, 2013 De nada, Suerte. viewtopic.php?f=149&t=62258 Link to comment
Recommended Posts