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!
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%" stopNie 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:
Edytowane przez Xa4inzDodanie 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