Skocz do zawartości
  • 0

Gość Usunięty#25541

Pytanie

Gość Usunięty#25541

Problem:

command /sellxp
	trigger:
		set {_money} to player's experience*2
		set player's experience to 0
		add {_money} to player's balance
		send "&6Sprzedałeś %{_xp}% dla $%{_money}/2%"
		stop

Nie wiem czemu to nie działa. Proszę bardzo o rozwiązanie tego problemu, bo ostatnio ten błąd zaczął mi wyskakiwać po napisaniu innego skryptu (nie wiem czemu).

Błędy z konsoli:

Cytat

[14:42:25] [Server thread/INFO]: [Skript] Reloading the config and all scripts...
[14:42:28] [Server thread/INFO]: Loaded 114752 aliases in 3304ms
[14:42:28] [Server thread/ERROR]: indentation error: expected 0 tabs, but found 1 tab (exp.sk, line 74: trigger:')
[14:42:28] [Server thread/ERROR]: indentation error: expected 0 tabs, but found 2 tabs (exp.sk, line 75: set {_money} to player's experience*2')
[14:42:28] [Server thread/ERROR]: indentation error: expected 0 tabs, but found 2 tabs (exp.sk, line 76: set player's experience to 0')
[14:42:28] [Server thread/ERROR]: indentation error: expected 0 tabs, but found 2 tabs (exp.sk, line 77: add {_money} to player's balance')
[14:42:28] [Server thread/ERROR]: indentation error: expected 0 tabs, but found 2 tabs (exp.sk, line 78: send "&6Sprzeda│eť %{_xp}% dla $%{_money}/2%"')
[14:42:28] [Server thread/ERROR]: invalid line - all code has to be put into triggers (exp.sk, line 73: command /sellxp')
[14:42:33] [Server thread/INFO]: Loaded 5 scripts with a total of 44 triggers and 3 commands in 5.04 seconds
[14:42:33] [Server thread/INFO]: [Skript] Encountered 6 errors while reloading the config and all scripts!

 

Edytowane przez Xa4inz
Dodanie błędów z konsoli.
Odnośnik do komentarza
https://skript.pl/temat/37617-problem-ze-skryptem/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /sellxp [<text>]:
	trigger:
		set {_money} to player's experience*2
		set player's experience to 0
		add {_money} to player's balance
		send "&6Sprzedałeś %{_xp}% dla $%{_money}/2%"
		stop

 

Odnośnik do komentarza
https://skript.pl/temat/37617-problem-ze-skryptem/#findComment-238974
Udostępnij na innych stronach

  • 0
Gość Usunięty#25541
2 godziny temu, LjayPL789 napisał:

dodaj kropke na koncu komendy;

command /sellxp:

Polecam zapoznać się z błędami Skripta

Zawsze o tym zapominam...

 

Jeszcze 2 errory:

Cytat

[14:59:39] [Server thread/INFO]: [Skript] Reloading the config and all scripts...
[14:59:42] [Server thread/INFO]: Loaded 114752 aliases in 3203ms
[14:59:42] [Server thread/ERROR]: Can't understand this expression: 'player's experience*2' (exp.sk, line 75: set {_money} to player's experience*2')
[14:59:42] [Server thread/ERROR]: Can't understand this condition/effect: set player's experience to 0 (exp.sk, line 76: set player's experience to 0')
[14:59:47] [Server thread/INFO]: Loaded 5 scripts with a total of 44 triggers and 4 commands in 5.06 seconds
[14:59:47] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading the config and all scripts!

 

 

Jeszcze nie zamykać tematu...

Nieaktywny

Łączę.

Odnośnik do komentarza
https://skript.pl/temat/37617-problem-ze-skryptem/#findComment-238976
Udostępnij na innych stronach

  • 0
40 minut temu, Xa4inz napisał:

Jeszcze 2 errory:

 

command /sellxp [<text>]:
	trigger:
		set {_money} to player's exp
		set {_money} to {_money}*2
		set player's exp to 0
		add {_money} to player's balance
		send "&6Sprzedałeś %{_xp}% dla $%{_money}/2%"
		stop

 

Odnośnik do komentarza
https://skript.pl/temat/37617-problem-ze-skryptem/#findComment-238984
Udostępnij na innych stronach

  • 0
Gość Usunięty#25541
Godzinę temu, xAxee napisał:

command /sellxp [<text>]:
	trigger:
		set {_money} to player's exp
		set {_money} to {_money}*2
		set player's exp to 0
		add {_money} to player's balance
		send "&6Sprzedałeś %{_xp}% dla $%{_money}/2%"
		stop

 

to samo

 

Godzinę temu, Xa4inz napisał:

to samo

Cytat

[15:43:11] [Server thread/INFO]: [Skript] Reloading the config and all scripts...
[15:43:14] [Server thread/INFO]: Loaded 114752 aliases in 3155ms
[15:43:14] [Server thread/ERROR]: Can't understand this expression: 'player's exp' (exp.sk, line 75: set {_money} to player's exp')
[15:43:14] [Server thread/ERROR]: Can't understand this condition/effect: set player's exp to 0 (exp.sk, line 77: set player's exp to 0')
[15:43:19] [Server thread/INFO]: Loaded 5 scripts with a total of 44 triggers and 4 commands in 5.04 seconds
[15:43:19] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading the config and all scripts!

 

Nieaktywny

Łączę.

Odnośnik do komentarza
https://skript.pl/temat/37617-problem-ze-skryptem/#findComment-238985
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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