Skocz do zawartości
  • 0

Problem z GUI


Nieaktywny
 Udostępnij

Pytanie

Weż ktoś popraw ten skrypt, nie wiem co w nim nie działa. Wersja SkQuery 3.5.0 Błędy w spoilerze.

Spoiler

 
[20:23:32 ERROR]: a player can't be set to anything (test.sk, line 7: set arg 1 to arg 1')
[20:23:32 ERROR]: '[tempban %player-arg% 1d Naruszenie regulaminu serwera]' is not a text (test.sk, line 11: format slot 0 of player with 1 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 1 dzien" to run [tempban %player-arg% 1d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[tempban %player-arg% 3d Naruszenie regulaminu serwera]' is not a text (test.sk, line 12: format slot 1 of player with 3 of redstone named "&cBan na 3 dni" with lore "&7Kliknij, aby zbanowac gracza na 3 dni" to run [tempban %player-arg% 3d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[tempban %player-arg% 7d Naruszenie regulaminu serwera]' is not a text (test.sk, line 13: format slot 2 of player with 7 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 7 dni" to run [tempban %player-arg% 7d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[tempban %player-arg% 14d Naruszenie regulaminu serwera]' is not a text (test.sk, line 14: format slot 3 of player with 14 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 14 dni" to run [tempban %player-arg% 14d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[tempban %player-arg% 30d Naruszenie regulaminu serwera]' is not a text (test.sk, line 15: format slot 4 of player with 30 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 30 dni" to run [tempban %player-arg% 30d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[tempban %player-arg% 90d Naruszenie regulaminu serwera]' is not a text (test.sk, line 16: format slot 5 of player with 90 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 90 dni" to run [tempban %player-arg% 90d Naruszenie regulaminu serwera]')
[20:23:32 ERROR]: '[ban %player-arg% Naruszenie regulaminu serwera]' is not a text (test.sk, line 17: format slot 6 of player with 1 of redstone_block named "&cBan permanentny" with lore "&7Kliknij, aby zbanowac gracza na zawsze" to run [ban %player-arg% Naruszenie regulaminu serwera]')

Skrypt: 

Spoiler

command /banuj [<player>] [<text>]:
    permission: lolplay.ban
    permission message:  ANTY REKLAMAPLAY.PL &r>> &4Nie masz dostepu do tej komendy!
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                open chest with 3 rows named "&4Karanie graczy" to player
                wait 2 ticks
                format slot 0 of player with 1 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 1 dzien" to run [tempban %player-arg% 1d Naruszenie regulaminu serwera]
                format slot 1 of player with 3 of redstone named "&cBan na 3 dni" with lore "&7Kliknij, aby zbanowac gracza na 3 dni" to run [tempban %player-arg% 3d Naruszenie regulaminu serwera]
                format slot 2 of player with 7 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 7 dni" to run [tempban %player-arg% 7d Naruszenie regulaminu serwera]
                format slot 3 of player with 14 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 14 dni" to run [tempban %player-arg% 14d Naruszenie regulaminu serwera]
                format slot 4 of player with 30 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 30 dni" to run [tempban %player-arg% 30d Naruszenie regulaminu serwera]
                format slot 5 of player with 90 of redstone named "&cBan na 1 dzien" with lore "&7Kliknij, aby zbanowac gracza na 90 dni" to run [tempban %player-arg% 90d Naruszenie regulaminu serwera]
                format slot 6 of player with 1 of redstone_block named "&cBan permanentny" with lore "&7Kliknij, aby zbanowac gracza na zawsze" to run [ban %player-arg% Naruszenie regulaminu serwera]
            else:
                send "ANTY REKLAMAPLAY.PL &r>> &cUzycie: /banuj <nick> <powod> - potem wyswietli sie GUI i tam wybierzesz czas!"
        else:
            send "ANTY REKLAMAPLAY.PL &r>> &cUzycie: /banuj <nick> <powod> - potem wyswietli sie GUI i tam wybierzesz czas!"

 

Odnośnik do komentarza
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...