Alexs Posted July 17, 2013 Posted July 17, 2013 esta haciendo exactamente lo mismo que el mio. Cual es la diferencia ? Que yo si creo la función 'starKey'.
Alexs Posted July 17, 2013 Posted July 17, 2013 Pero realiza Lo mismo xP Estamos haciendo post's inútiles o quieres llegar a algo con mas sentido?
AlvareZ_ Posted July 17, 2013 Posted July 17, 2013 Bueno en fin, Cualquiera de los dos serviría. @Javier
Javier Posted July 17, 2013 Author Posted July 17, 2013 Probé el de ambos y me dice lo mismo "Bind.lua:15: Bad 'function' pointer @ 'bindKey'(4)"
Alexs Posted July 17, 2013 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 )
Recommended Posts