Jumper_Mych Posted January 2, 2011 Share Posted January 2, 2011 Doesn't work me code Boss = { [113]=true } Marker = createMarker ( 0, 0, 24, "arrow", 1.5, 255, 135, 0, 83 ) function 123 (boses,cmd) if isElementWithinMarker (boses, Marker) then if Boss[getElementModel(boses)] then cancelEvent() setElementPosition (boses, 500, 500, 500) else outputChatBox ( "You're not a Mafia!", boses, 255, 0, 0) end end end addCommandHandler("goto", 123) help Link to comment
Aibo Posted January 2, 2011 Share Posted January 2, 2011 function/variable name must not start with a number. PS: http://www.lua.org/pil/1.3.html Link to comment
Jumper_Mych Posted January 2, 2011 Author Share Posted January 2, 2011 Thanks this is Easy Link to comment
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