Skocz do zawartości
  • 0

Skrypt na danie graczowi darmowego itemu pod komenda /nagroda


Pytanie

Siemka jest ktoś wstanie , pomóc mi i napisać mi  skript :

chodzi o to aby w tym skripcie dało sie dać graczowi brusha z komendy /miner give [nick] brush_kratka

ponieważ mam taki plugin i chce aby jeden z brushów w tym pluginie był za darmo do odebrania pod komendą np. /nagroda

 

Będę bardzo wdzięczny ponieważ siłuję się z tym ponad 2h

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Godzinę temu, cupxz napisał:

Powinno działać

Niestety nie działa , wyskakuje takie coś po przeładowaniu skryptu , chciałbym tylko poinformować że mam wersje 1.16.5 
 

 

[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 11 spaces (nagroda.sk, line 5: if {odebrano::%player%} is false:')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 15 spaces (nagroda.sk, line 6: execute console command "miner give %player% Brush_Kratka"')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 15 spaces (nagroda.sk, line 7: set {odebrano::%player%} to true')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 12 spaces (nagroda.sk, line 8: else:')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 16 spaces (nagroda.sk, line 9: send "&cOdebra│eť ju┐ brush'a" to player')
[15:26:18] [Server thread/ERROR]: A command with the name /nagroda is already defined in stone.sk
[15:26:18] [Server thread/INFO]: [Skript] Encountered 6 errors while reloading nagroda.sk!

 

Glicz

Łączę posty, wstawiam błędy w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316636
Udostępnij na innych stronach

  • 0
Teraz, Patrykovvsky napisał:

[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 11 spaces (nagroda.sk, line 5: if {odebrano::%player%} is false:')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 15 spaces (nagroda.sk, line 6: execute console command "miner give %player% Brush_Kratka"')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 15 spaces (nagroda.sk, line 7: set {odebrano::%player%} to true')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 12 spaces (nagroda.sk, line 8: else:')
[15:26:18] [Server thread/ERROR]: indentation error: expected 14 spaces, but found 16 spaces (nagroda.sk, line 9: send "&cOdebra│eť ju┐ brush'a" to player')
[15:26:18] [Server thread/ERROR]: A command with the name /nagroda is already defined in stone.sk
[15:26:18] [Server thread/INFO]: [Skript] Encountered 6 errors while reloading nagroda.sk!

musisz dobrze wytabować

4 spacje = 1 tab

Edytowane przez cupxz
Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316640
Udostępnij na innych stronach

  • 0
1 minutę temu, cupxz napisał:

musisz dobrze wytabować

4 spacje = 1 tab

gdzie dokładnie wytabować ? w każdym usunąć te przerwy i od nowa dać 1 taba ?

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316641
Udostępnij na innych stronach

  • 0
Teraz, Patrykovvsky napisał:

gdzie dokładnie wytabować ? w każdym usunąć te przerwy i od nowa dać 1 taba ?

tak, tylko po każdym dwukropku nizej musi byc jeden tab wiecej

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316642
Udostępnij na innych stronach

  • 0

teraz coś takiego !

[15:45:13] [Server thread/INFO]: [Skript] Reloading nagroda.sk...
[15:45:13] [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. (nagroda.sk, line 5: if {odebrano::%player%} is false:')
[15:45:13] [Server thread/ERROR]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (nagroda.sk, line 8: else:')
[15:45:13] [Server thread/ERROR]: A command with the name /nagroda is already defined in stone.sk
[15:45:13] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading nagroda.sk!

 

Glicz

Wstawiam błędy w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316643
Udostępnij na innych stronach

  • 0
Teraz, Patrykovvsky napisał:

teraz coś takiego !

[15:45:13] [Server thread/INFO]: [Skript] Reloading nagroda.sk...
[15:45:13] [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. (nagroda.sk, line 5: if {odebrano::%player%} is false:')
[15:45:13] [Server thread/ERROR]: Unexpected entry 'else'. Check whether it's spelled correctly or remove it. (nagroda.sk, line 8: else:')
[15:45:13] [Server thread/ERROR]: A command with the name /nagroda is already defined in stone.sk
[15:45:13] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading nagroda.sk!

 

else ma być równo z ifem oraz znowu źle coś wytabowałeś, masz już taką komendę zdefiniowaną w innym skrypcie

Odnośnik do komentarza
https://skript.pl/temat/51508-skrypt-na-danie-graczowi-darmowego-itemu-pod-komenda-nagroda/#findComment-316650
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ę...