Scripting Posted April 10, 2012 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")
Aibo Posted April 10, 2012 Posted April 10, 2012 you are attaching nonexistent function to a nonexistent marker. and "end" for function is missing. fix it yourself. ?
Jaysds1 Posted April 10, 2012 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 ) My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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