DonPro Posted April 14, 2015 Share Posted April 14, 2015 Hi i need help, i dont find the problems, im pretty new and im realy trying but it all just stop'ed up for me right now i dont know what to do. -- Creating Of The Parts local object1 = createObject (10794, -1514.599609375, 242, 7, 0, 0, 0) -- Main Deck local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) -- Containers On The Deck local object3 = createObject(9584, -1465.400390625, 242, 26.200000762939, 0, 0) -- Containers On The Under Deck local object4 = createObject(9698, -1453.91015625, 240.826171875, 29.079999923706, 0, 0, 0) -- Under Deck -- Attachments Of The Parts attachElements(object1, hull, -2.28, 0, 10.1) attachElements(object2, hull, 6.35, 0, 1.-- s8) --> attachElements(object3, hull, 8, 0, 16.6) attachElements(object4, hull, 5.7, 0, 0.6) function move1( commandName, object ) for e=1, 4 do for _,object in ipairs(getElementsByType("object")) do if (getElementData(object,"name") == a[e]) then local x,y,z = getElementPosition(object) moveObject(object,2000, -1289.1999511719, 293.20001220703, 7, 0, 0, 46) ------------- speed and local xyz axsis end addCommandHandler ( "start", moveObject ) end end end function isAdminAccount(account) local nick = "" local group = aclGetGroup("Admin") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end Link to comment
Addlibs Posted April 14, 2015 Share Posted April 14, 2015 I guess your problem is Lua Parsing fail. Lua doesn't recognise markup-style comments. If you enter XML-comments, be sure to mark them as Lua comments by adding double hyphen (--) in front. Check Line 9. Link to comment
Ryancit2 Posted April 15, 2015 Share Posted April 15, 2015 Its not line 9 issue, its fine, when we write smileys inside codes on forums, it gives output of smiley's path within code, his line 9 is actually like this: attachElements ( object2, hull, 6.35, 0, 1.8 ) 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