ZL|LuCaS Posted October 14, 2014 Posted October 14, 2014 I'm trying to do the gate. What is wrong with this code? gate1 = createObject(980, -1980.5789794922, 283.62588500977, 37, 0,0,90) gate2 = createObject(980, -1980.5789794922, 293.22588500977, 37, 0,0,90) hitMarker1 = createMarker(-1985.8018798828, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) hitMarker2 = createMarker(-1976.7435302734, 288.45, 33.54, 'cylinder', 3, 255, 0, 0, 150) timerReady1 = function(leaveElement, matchingDimension) moveObject(gate1, 5000, -1980.5789794922, 283.62588500977, 40, 0,0,90) end addEventHandler("onMarkerHit",hitMarker1,timerReady1) timerReady2 = function(leaveElement, matchingDimension) moveObject(gate2, 5000, -1980.5789794922, 293.22588500977, 40, 0,0,90) end addEventHandler("onMarkerHit",hitMarker2,timerReady2) timerReady3 = function(leaveElement, matchingDimension) moveObject(gate1, 5000, -1980.5789794922, 283.62588500977, 37, 0,0,90) end addEventHandler("onMarkerLeave",hitMarker1,timerReady3) timerReady4 = function(leaveElement, matchingDimension) moveObject(gate2, 5000, -1980.5789794922, 293.22588500977, 37, 0,0,90) end addEventHandler("onMarkerLeave",hitMarker2,timerReady4) MTA Scripters. ♥♥♥Beijinhos♥♥♥
DNL291 Posted October 15, 2014 Posted October 15, 2014 What is wrong with this code? addEventHandler( "onMarkerLeave", hitMarker2) Was missing the 3rd argument which is the function. Please do not PM me with scripting related question nor support, use the forums instead.
ZL|LuCaS Posted October 15, 2014 Posted October 15, 2014 What is wrong with this code? addEventHandler( "onMarkerLeave", hitMarker2) Was missing the 3rd argument which is the function. the code contains characters, will not work. MTA Scripters. ♥♥♥Beijinhos♥♥♥
DNL291 Posted October 15, 2014 Posted October 15, 2014 What do you mean by 'characters'? I also realized that there are two functions called: timerReady. I see no more errors besides those, but I haven't tested that code though. Please do not PM me with scripting related question nor support, use the forums instead.
Anubhav Posted October 15, 2014 Posted October 15, 2014 Its already solved, he posted 2 topics. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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