Skocz do zawartości
  • 0

Nie działający czas w skrypcie


Dziubak
 Udostępnij

Pytanie

Cześć!

Chcialem aby komendę w skrypcie można było używać co 3 minuty, lecz niestety ten czas nie działa

Po 3 minutach jedynie wyświetla sie

&c[&6BEST&c] &aOdczekaj jeszcze troszke! Tej komendy mozna uzywac co 3 minuty!

A komendy można używać cały czas

 

variables:
    {naj.%player%} = false
command /naj:
        trigger:
                if {naj.%player%} is true:
                broadcast "&9&lGracz &f%player% &9&luwaza, ze serwer &b&lXXXXXXXXX &9&ljest najlepszy!"
                send "&a&lDziekujemy za wsparcie, w nagrode otrzymujesz 500$" to player
                add 500 to player's balance
                set {naj.%player%} to false
                wait 3 minutes
                set {naj.%player%} to true
                if {naj.%player%} is false:
                send "&c[&6BEST&c] &aOdczekaj jeszcze troszke! Tej komendy mozna uzywac co 3 minuty!" to player

 

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
15 minut temu, MegaLegoTom napisał:

Powinno działać Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Jeżeli nie to podaj błędy.

indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 6: broadcast "&9&lGracz &f%player% &9&luwaza, ze serwer &b&lXXXXXXXXX &9&ljest najlepszy!"')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 7: send "&a&lDziekujemy za wsparcie, w nagrode otrzymujesz 500$" to player')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 8: add 500 to player's balance')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 9: set {naj.%player%} to false')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found 5 tabs (test.sk, line 10: wait 3 minutes')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found 5 tabs (test.sk, line 11: set {naj.%player%} to true')
[17:20:06 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. (test.sk, line 5: if {naj.%player%} is true:')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 13: send "&c[&6BEST&c] &aOdczekaj jeszcze troszke! Tej komendy mozna uzywac co 3 minuty!" to player')
[17:20:06 INFO]: [Skript] Encountered 7 errors while reloading test.sk!
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 godziny temu, Szostaczek napisał:
indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 6: broadcast "&9&lGracz &f%player% &9&luwaza, ze serwer &b&lXXXXXXXXX &9&ljest najlepszy!"')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 7: send "&a&lDziekujemy za wsparcie, w nagrode otrzymujesz 500$" to player')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 8: add 500 to player's balance')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 9: set {naj.%player%} to false')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found 5 tabs (test.sk, line 10: wait 3 minutes')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found 5 tabs (test.sk, line 11: set {naj.%player%} to true')
[17:20:06 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. (test.sk, line 5: if {naj.%player%} is true:')
[17:20:06 ERROR]: indentation error: expected 24 spaces, but found '________________->' [-> = tab, _ = space, ? = other whitespace] (test.sk, line 13: send "&c[&6BEST&c] &aOdczekaj jeszcze troszke! Tej komendy mozna uzywac co 3 minuty!" to player')
[17:20:06 INFO]: [Skript] Encountered 7 errors while reloading test.sk!

Wystarczyło dobrze wytabować. ㋡

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

 

Odnośnik do komentarza
Udostępnij na innych stronach

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