Jump to content

Bug


xeon17

Recommended Posts

Posted
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.

560x95_FFFFFF_FF9900_000000_000000.png

Posted

Lazyness will get you nowhere, if you really want to achieve something, you must learn.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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.

560x95_FFFFFF_FF9900_000000_000000.png

Posted

"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

9o6E8.png Ab-47

Posted
"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.

560x95_FFFFFF_FF9900_000000_000000.png

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...