xeon17 Posted February 7, 2014 Posted February 7, 2014 local gate = createObject(976, 210.2001953125, 1875.7998056875, 12.10000038147, 0, 0, 0) local marker = createMarker(210.2001953125, 1875.7998056875, 12.10000038147,"cylinder",2,0,0,255,255) function openGate (hitPlayer, matchingDimension) moveObject(gate, 210.23286437988, 1875.4119873047, 13.146965026855) end addEventHandler("onMarkerHit", marker, openGate) function closeGate(leavingPlayer, matchingDimension) moveObject(gate, 210.2001953125, 1875.7998056875, 12.10000038147) end addEventHandler("onClientMarkerLeave", marker, closeGate) [2014-02-07 13:16:18] WARNING: Bases\Area51.lua:91: Bad argument @ 'moveObject' [Expected number at argument 5, got none]
iPrestege Posted February 7, 2014 Posted February 7, 2014 What about read the wiki? moveObject Arguments : Object and Time .
Castillo Posted February 8, 2014 Posted February 8, 2014 Lazyness will get you nowhere, if you really want to achieve something, you must learn.
xeon17 Posted February 8, 2014 Author Posted February 8, 2014 Lazyness will get you nowhere, if you really want to achieve something, you must learn. Its true , i give my best and learning i'm don't so bad now.
Ab-47 Posted February 8, 2014 Posted February 8, 2014 "addEventHandler("onClientMarkerLeave", marker, closeGate)" You've used a client event on a, let me guess, server side code? If on a client side code you've used a server function here: addEventHandler("onMarkerHit", marker, openGate) Just read the wiki, as Solidsnake said; Lazyness will get you nowhere, if you really want to achieve something, you must learn.
xeon17 Posted February 8, 2014 Author Posted February 8, 2014 "addEventHandler("onClientMarkerLeave", marker, closeGate)"You've used a client event on a, let me guess, server side code? If on a client side code you've used a server function here: addEventHandler("onMarkerHit", marker, openGate) Just read the wiki, as Solidsnake said; Lazyness will get you nowhere, if you really want to achieve something, you must learn. Yes i know , i fixed this allerdy.
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