Witam!
Chciałem dodać banowanie gracza gdy umrze w świecie o nazwie hardcore. Nie wiem dlaczego wyskakuje mi błąd
Kod:
options:
reason : &cUmarles!&f do zobaczenia za 7 dni!
on death of player:
if player is in "hardcore":
send "Umarles :c Masz 20 sekund na pozegnianie sie ;)" to player
wait 20 seconds
execute console command "tempban %player% 7d {@reason}"
Błąd:
[21:34:26 INFO]: [Skript] Reloading all scripts...
[21:34:26 ERROR]: Can't compare a player with 'in "hardcore"' (hc_ban.sk, line 4: if player is in "hardcore":')
[21:34:26 INFO]: Loaded 1 script with a total of 1 trigger and 0 commands in 0.01 seconds
[21:34:26 INFO]: [Skript] Encountered 1 error while reloading all scripts!
Inny skrypt z if player is in "hardcore" działa bez problemu. W czym leży problem?
on shear:
if player is in "hardcore":
chance of 50%:
create an explosion of force 7 at target
Pytanie
Nevvy 0
Witam!
Chciałem dodać banowanie gracza gdy umrze w świecie o nazwie hardcore. Nie wiem dlaczego wyskakuje mi błąd
Kod:
options: reason : &cUmarles!&f do zobaczenia za 7 dni! on death of player: if player is in "hardcore": send "Umarles :c Masz 20 sekund na pozegnianie sie ;)" to player wait 20 seconds execute console command "tempban %player% 7d {@reason}"Błąd:
[21:34:26 INFO]: [Skript] Reloading all scripts... [21:34:26 ERROR]: Can't compare a player with 'in "hardcore"' (hc_ban.sk, line 4: if player is in "hardcore":') [21:34:26 INFO]: Loaded 1 script with a total of 1 trigger and 0 commands in 0.01 seconds [21:34:26 INFO]: [Skript] Encountered 1 error while reloading all scripts!Inny skrypt z if player is in "hardcore" działa bez problemu. W czym leży problem?
on shear: if player is in "hardcore": chance of 50%: create an explosion of force 7 at targetOdnośnik do komentarza
https://skript.pl/temat/20012-dziwny-b%C5%82%C4%85d/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi