Jump to content

XML ID's


golanu21

Recommended Posts

hi guys i make that

function elevator (player, cmd, x1, x2, x3, col1, col2, col3, alpha, size ) 
local x, y, z = getElementPosition (player) 
    if x1 and x2 and x3 and col1 and col2 and col3 and alpha and size then 
    px, py, pz = x1, x2 + 2, x3 
    tx, ty, tz = x, y + 2, z 
       marker1 = createMarker ( x, y, z + 1, "arrow",2, col1, col2, col3, alpha ) 
       marker2 = createMarker ( tonumber(x1), tonumber(x2), tonumber(x3) + 1, "arrow", size, col1, col2, col3, alpha ) 
       local NewNode = xmlCreateChild(RootNode, "Elevator ID"..id..".") 
       xmlSaveFile(RootNode) 
       local id =  
    else 
        outputChatBox ("[invalid Syntax]: /addelevator [x], [y], [z], [Col1], [Col2], [Col3], [Alpha], [size] ", player, 255, 0, 0 ) 
    end 
end 
addCommandHandler("addelevator", elevator ) 

and i don't know what i need to type "local id = " for when i want to delete to make like this /delelevator [iD]

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