Jump to content

Bug


xeon17

Recommended Posts

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] 

Link to comment

"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.
Link to comment
"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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...