Scripting Posted April 10, 2012 Share Posted April 10, 2012 Hi people, addEventHandler("onMarkerHit" don t work, pls fix it server side: addEventHandler( "onMarkerHit", marker1, hit1 ) marker1 = createMarker ( 1866.4461669922, -1842.089984375,388.32568359375 , 'cylinder', 2.0, 255, 0, 0, 150) function hit1 (player) outputChatBox("hited") Link to comment
Aibo Posted April 10, 2012 Share Posted April 10, 2012 you are attaching nonexistent function to a nonexistent marker. and "end" for function is missing. fix it yourself. Link to comment
Jaysds1 Posted April 10, 2012 Share Posted April 10, 2012 marker1 = createMarker ( 1866.4461669922, -1842.089984375,388.32568359375 , 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onMarkerHit", marker1,function() outputChatBox("hited") end --forgot this ) 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