Jump to content

how do i do this with tab completions


Recommended Posts

on tab complete of "/warpedit", "/warpe" or "/wedit":
    set tab completions for position 1 to "add", "remove", "list", "show", "location", "setname", "help" and "hide"
    if tabarg-1 is "remove", "hide", "show" or "location":
        set tab completions for position 2 to {adminwarplist::*}

the error is in if tabarg-1 is "remove", "hide", "show" or "location":

error message: cant compare tabarg-1 with a text

Link to comment
Share on other sites

on tab complete of "/warpedit", "/warpe" or "/wedit":
    set tab completions for position 1 to "add", "remove", "list", "show", "location", "setname", "help" and "hide"
    if tab arg-1 = "remove", "hide", "show" or "location":
        set tab completions for position 2 to {adminwarplist::*}

Simple as that. You have some syntax errors. Compare yours side by side, and you'll see the slight differences

Link to comment
Share on other sites

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
×
×
  • Create New...