tab completers giving errors in console

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Adrihun

Member
Feb 1, 2017
368
6
0
So My tab completer script works, but it gives error in console (when starting server)

code_language.skript:
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 6: on tab completer for "/h":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 20: on tab completer for "/c":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 27: on tab completer for "/ra":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 34: on tab completer for "/e":')

why does it do this?
 
So My tab completer script works, but it gives error in console (when starting server)

code_language.skript:
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 6: on tab completer for "/h":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 20: on tab completer for "/c":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 27: on tab completer for "/ra":')
[21:10:48 ERROR]: [Skript] A tab completer cannot be assigned before the command is defined. (Completers.sk, line 34: on tab completer for "/e":')

why does it do this?


You need run commands first then on tab completer, Like functions but other side way.
 
Just see if the player has the permission and if they do, send them the option.
i tried doing that but it won't work.
[doublepost=1495320814,1495320759][/doublepost]@BrettPlayMC

code_language.skript:
on tab completer for "/rankchangerr":
    player has permission "htest.adminn":
        if argument at 1 is set:
            loop all players:
                if argument at 1 is "%loop-player%":
                    add "test" to completions
    else:
        stop
 
Status
Not open for further replies.