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] A unique GangWar gamemode waiting for you!Click here for more information.
iPrestege Posted February 7, 2014 Posted February 7, 2014 What about read the wiki? moveObject Arguments : Object and Time .
xeon17 Posted February 7, 2014 Author Posted February 7, 2014 I'm lazy A unique GangWar gamemode waiting for you!Click here for more information.
Castillo Posted February 8, 2014 Posted February 8, 2014 Lazyness will get you nowhere, if you really want to achieve something, you must learn. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. A unique GangWar gamemode waiting for you!Click here for more information.
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. And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
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. A unique GangWar gamemode waiting for you!Click here for more information.
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