Cześć, mam pewien problem ze skryptem.
Chciałem zrobić coś podobnego do ogłoszenia, że po wpisaniu komendy "/sklepadmin <tekst> <tekst>" otrzymujemy komunikat do całego serwera typu: "Tekst1 kupił Tekst2 w naszym sklepie!" i w 1 tekście wpisać nick, a w drugim usługę.
No ale coś nie wyszło. Próbowałem to w jakiś sposób naprawić, ale nadal nic. Tu błędy z konsoli:
[21:28:43] [Server thread/INFO]: [Skript] Reloading sklepadmin.sk...
[21:28:43] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sklepadmin.sk, line 4: if arg 2 is set:')
[21:28:43] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sklepadmin.sk, line 7: loop all players:')
[21:28:43] [Server thread/ERROR]: There's no loop that matches 'loop-player' (sklepadmin.sk, line 8: send "&7> &c『Sklep』 &eGracz &6%arg1% &ekupił w naszym sklepie &6%arg2%&e! Dziękujemy za wsparcie serwera! Jeśli też chcesz coś kupić, wejdź na &6www.STRONAINTERNETOWA..." to loop-player')
[21:28:43] [Server thread/INFO]: [Skript] Encountered 1 error while reloading sklepadmin.sk!
A tu cały skrypt:
command /sklepadmin <text> <text>:
trigger:
if arg 1 is set:
if arg 2 is set:
if player has permission "bc.sklep.admin":
send "&6Wiadomosc została wysłana!" to player
loop all players:
send "&7> &c『Sklep』 &eGracz &6%arg1% &ekupił w naszym sklepie &6%arg2%&e! Dziękujemy za wsparcie serwera! Jeśli też chcesz coś kupić, wejdź na &6www.STRONAINTERNETOWA..." to loop-player
else:
send "&cPodaj argumenty!" to player
Pomóżcie proszę, z góry dzięki