'arg 1 for 5 seconds' is not an entity type

Discussion in 'Skript' started by Truezify, Sep 15, 2020 at 7:24 PM.

  1. Hey, i am a beginner in scripting and i need some help, because i can't send a title message for arg 1 (player)

    Code (Text):
    command /invite [<player>]:
        usage: /invite [Spieler]
        trigger:
            if player has permission "fbi.leader":
                if arg 1 doesn't have permission "fraktion":
                    execute console command "/pex user %arg 1% group set FBI"
                    send "&eDu wurdest in die Fraktion &1&lFBI &eaufgenommen!" to arg 1
                    send player title "&7- &1&lFBI &7-" with subtitle "&eDu wurdest in eine Fraktion aufgenommen!" to arg1 for 5 seconds
                    send "&6Du hast %arg 1% in die Fraktion &1FBI &6aufgenommen!"
                else:
                    send "&cDieser Spieler ist bereits in einer Fraktion."
    Error Message:

    'arg 1 for 5 seconds' is not an entity type (invite.sk, line 8: send player title "&7- &1&lFBI &7-" with subtitle "&eDu wurdest in eine Fraktion aufgenommen!" to arg 1 for 5 seconds')
     
  2. replace player title with title

    replace to arg1 with to arg 1
     
  3. Thank you! It worked :)
     
    • Friendly Friendly x 1