Skocz do zawartości
  • 0

Proszę o naprawę Skryptu.


Pytanie

Cytat

variables:
    {zaprosil.%player%} = 0
command /zaprosil [<text>]:
    trigger:
        if arg 1 is player:
        if arg 1 is online:
        if arg 1 is set:
            add 1 to {zaprosil.%player%}
            message "Dodano 1 gracza !"
        else:
            message "Ta osoba nie jest uzytkownikem!"
    else:
        message "Ta osoba nie jest online!"
        
        if {zaprosil.%player%} is 10:
            execute console command "eco give %player% 10000"

 

Błędy:

Cytat
[19:31:47 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. (Blokowaniekomend.sk, line 10: trigger:')
[19:31:47 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. (nagroda.sk, line 5: if arg 1 is player:')
[19:31:47 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. (nagroda.sk, line 6: if arg 1 is online:')
[19:31:47 ERROR]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (nagroda.sk, line 12: else:')
[19:31:47 ERROR]: Can't compare a text with 'online' (nagroda.sk, line 6: if arg 1 is online:')

 

Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
13 minut temu, Kucatowsky45 napisał:

 

Błędy:

 

Text nie może być online, a arg 1 nigdzie nie setujesz na gracza, tylko sprawdzasz czy jest graczem.

Poprawiony kod:

variables:
	{zaprosil.%player%} = 0

command /zaprosil [<text>]:
	trigger:
		if arg 1 is set:
			set {_player} to arg 1 parsed as player
  			if {_player} is online:
				add 1 to {zaprosil.%player%}
  				message "Dodano 1 gracza!"
  			# Dalszy kod.

 

Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/#findComment-229184
Udostępnij na innych stronach

  • 0

Ciągle mam błąd, ciągle Skript ma problem z tabami itd itp. Mógłbym poprosić cały skrypt? Nie lubię się bawić w Skryptach. ;c

12 minut temu, ShadowEk napisał:

Text nie może być online, a arg 1 nigdzie nie setujesz na gracza, tylko sprawdzasz czy jest graczem.

Poprawiony kod:


variables:
	{zaprosil.%player%} = 0

command /zaprosil [<text>]:
	trigger:
		if arg 1 is set:
			set {_player} to arg 1 parsed as player
  			if {_player} is online:
				add 1 to {zaprosil.%player%}
  				message "Dodano 1 gracza!"
  			# Dalszy kod.

 

 

Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/#findComment-229185
Udostępnij na innych stronach

  • 0
5 minut temu, Kucatowsky45 napisał:

Ciągle mam błąd, ciągle Skript ma problem z tabami itd itp. Mógłbym poprosić cały skrypt? Nie lubię się bawić w Skryptach. ;c

 

Wiedziałem, ze bedzie problem z tabami, wstawie Ci na code skript.

Wytabuj sobie lepiej, bo zauwazylem blad, a nie bede tworzyl kolejnego skryptu :_: (przy message, jak zapraszasz)

Edytowane przez ShadowEk
Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/#findComment-229187
Udostępnij na innych stronach

  • 0

Teraz walnęło 3 błędy zamiast 8. ;c

Błędy:

Cytat
[20:12:38 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. (Skrypt.sk, line 8: if {_player} is online:')
[20:12:38 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. (Skrypt.sk, line 11: if {zaprosil.%player%} = 10:')
[20:12:38 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Skrypt.sk, line 13: else:')
10 minut temu, ShadowEk napisał:

Wiedziałem, ze bedzie problem z tabami, wstawie Ci na code skript.

 

 

Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/#findComment-229190
Udostępnij na innych stronach

  • 0
Godzinę temu, Kucatowsky45 napisał:

Nie mam dodatkow do Skripta

 

Pobierz te podstawowe dodatki do skripta, wildsrkipt, skquery, skellet, skrayfall, itd. Mi juz dziala :P (Do tego skryptu jest wymagany Vault i Essentials. Jak chcesz, to mozesz sobie zrobic tym eco give)

Odnośnik do komentarza
https://skript.pl/temat/35710-prosz%C4%99-o-napraw%C4%99-skryptu/#findComment-229209
Udostępnij na innych stronach

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

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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