'set! is not an entity type

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

snakercz_

Member
Jun 5, 2017
13
0
1
24
Hello,
i want to start my skript on friend's server and it gives me an error:

upload_2017-6-19_19-31-6.png


Code:

code_language.skript:
command /report <offline player> <text>:
  usage: /report <player> <reason>
  trigger:
    set {playerr} to arg 1
    set {reason1} to argument-text
    if player has permission "reportsys.report":
      if {playerr} is online:
        if {reportsys.cooldown.%player%} is 1:
          if {enlocale} is 1:
            message "&cYou must wait 15 minutes before next report!"
          if {enlocale} is 0:
            message "&cMusis pockat 15 minut pred dalsim nahlasenim!"
          if {enlocale} is 2:
            message "&cMusis pockat 15 minut pred dalsim nahlasenim!" 
        else:
          if player is {baniky::*}:
            if {enlocale} is 1:
              message "&cYou are on banlist! You can't report anything until you get unbanned."
            if {enlocale} is 0:
              message "&cJsi na banlistu! Nemuzes nikoho repotnout dokud te admini neodbanuji."
            if {enlocale} is 2:
              message "&cSi na banlistu! Nemozes reportnut nikoho, dokud nebudes odbanovan."
          else:
            if {playerr} and {reason1} is set: #THIS IS ERROR LINE
              if {enlocale} is 1:
                log "Player %sender% reported %{playerr}% for %{reason1}%" to file "reportsys/report.log"
                message "&6You reported player &8(&7%{playerr}%&8) &6for &8(&7%{reason1}%&8)&6. Player will be checked by admins."
                loop all players:
                  loop-player has permission "reportsys.notify"
                  message "&6Player %sender% reported &8(&7%{playerr}%&8) &6for &8(&7%{reason1}%&8)&6." to loop-player
                set {reportsys.cooldown.%player%} to 1
                wait 15 minutes
                set {reportsys.cooldown.%player%} to 0
              if {enlocale} is 0:
                log "Hrac %sender% nahlasil hrace %{playerr}% za %{reason1}%" to file "reportsys/report.log"
                message "&6Nahlasil jsi hrace &8(&7%{playerr}%&8) &6za &8(&7%{reason1}%&8)&6. Hrac bude co nejdrive proveren adminy."
                loop all players:
                  loop-player has permission "reportsys.notify"
                  message "&6Hrac %sender% nahlasil hrace &8(&7%{playerr}%&8) &6za &8(&7%{reason1}%&8)&6." to loop-player
                set {reportsys.cooldown.%player%} to 1
                wait 15 minutes
                set {reportsys.cooldown.%player%} to 0
              if {enlocale} is 2:
                log "Hrac %sender% nahlasil %{playerr}% za %{reason1}%" to file "reportsys/report.log"
                message "&6Nahlasil si hraca &8(&7%{playerr}%&8) &6za &8(&7%{reason1}%&8)&6. Hrac bude co najskor prevereny administratormi"
                loop all players:
                  loop-player has permission "reportsys.notify"
                  message "&6Hrac %sender% nahlasil hrace &8(&7%{playerr}%&8) &6za &8(&7%{reason1}%&8)&6." to loop-player
                set {reportsys.cooldown.%player%} to 1
                wait 15 minutes
                set {reportsys.cooldown.%player%} to 0
            else:
              if {enlocale} is 1:
                message "&cYou must specify player and reason!"
              if {enlocale} is 0:
                message "&cMusis specifikovat hrace a duvod!"
              if {enlocale} is 2:
                message "&cMusis specifikovat hrace a dovod!"           
      else:
        if {enlocale} is 1:
          message "&cPlayer must be online!" to player
        if {enlocale} is 2:
          message "&cHrac musi byt online!" to player
        if {enlocale} is 0:
          message "&cHrac musi byt online!" to player
    else:
      if {enlocale} is 1:
        message "&cYou dont have permission to do that!" to player
      if {enlocale} is 2:
        message "&cNemas prava!" to player
      if {enlocale} is 0:
        message "&cNemas prava!" to player

What i can do with that? Thx for reply :emoji_slight_smile:
 
Status
Not open for further replies.