Mam problem ze skryptem który wysyła powiadomienia o wykopaniu przez kogoś rud.
variables:
ax = true
on break diamond ore:
loop all players:
if loop-player has permission "xray.wiadomosc":
if {ax.%player%} is true:
send "&7[&cX-ray&7] &6Gracz %player% wykopal diament!"
else:
cancel event
on break gold ore:
loop all players:
if loop-player has permission "xray.wiadomosc":
if {ax.%player%} is true:
send "&7[&cX-ray&7] &6Gracz %player% wykopal zloto!"
else:
cancel event
on break emerald ore:
loop all players:
if loop-player has permission "xray.wiadomosc":
if {ax.%player%} is true:
send "&7[&cX-ray&7] &6Gracz %player% wykopal emerald!"
else:
cancel event
on break ancient debris:
loop all players:
if loop-player has permission "xray.wiadomosc":
if {ax.%player%} is true:
send "&7[&cX-ray&7] &6Gracz %player% wykopal netherite!"
else:
cancel event
on command /ax [<text>]:
trigger:
if arg 1 is "on":
set {ax.%player%} to true
send "&7[&cX-ray&7] &6Wylaczono powiadomienia xray"
if arg 1 is "off":
set {ax.%player%} to false
tak wygląda skrypt błędy które się pojawiają to:m
Cytat
[ERROR]invalid line - all code has to be put into triggers (xray.sk, line 2: ax = true')
[ERROR]can't understand this event: 'on command /ax [<text>]' (xray.sk, line 37: on command /ax [<text>]:')
[INFO][Skript] Encountered 2 errors while reloading xray.sk!
Pytanie
Karollus997 0
Mam problem ze skryptem który wysyła powiadomienia o wykopaniu przez kogoś rud.
variables: ax = true on break diamond ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal diament!" else: cancel event on break gold ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal zloto!" else: cancel event on break emerald ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal emerald!" else: cancel event on break ancient debris: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal netherite!" else: cancel event on command /ax [<text>]: trigger: if arg 1 is "on": set {ax.%player%} to true send "&7[&cX-ray&7] &6Wylaczono powiadomienia xray" if arg 1 is "off": set {ax.%player%} to falsetak wygląda skrypt błędy które się pojawiają to:m
Proszę was o pomoc.
Odnośnik do komentarza
https://skript.pl/temat/47943-problem-ze-skryptem/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.