Skocz do zawartości
  • 0

Napisze ktoś skrypt na automatyczny restart serwera?


Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
every 15 minutes:
	loop all players
		add loop-player to {_list::*}
			if size of {_players::*} < 1:
				execute console command: "save-all"
				execute console command: "restart"
			else if {_players::*} is not set:
				execute console command: "save-all"
				execute console command: "restart"


 

Odnośnik do komentarza
https://skript.pl/temat/54156-napisze-kto%C5%9B-skrypt-na-automatyczny-restart-serwera/#findComment-328956
Udostępnij na innych stronach

  • 0

Line 3: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 2 tabs
[15:22:59 INFO]:     Line: add loop-player to {_list::*}
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 4: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 3 tabs
[15:22:59 INFO]:     Line: if size of {_players::*} < 1:
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 5: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 4 tabs
[15:22:59 INFO]:     Line: execute console command: "save-all"
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 6: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 4 tabs
[15:22:59 INFO]:     Line: execute console command: "restart"
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 7: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 3 tabs
[15:22:59 INFO]:     Line: else if {_players::*} is not set:
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 8: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 4 tabs
[15:22:59 INFO]:     Line: execute console command: "save-all"
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 9: (24/7.sk)
[15:22:59 INFO]:     indentation error: expected 1 tab, but found 4 tabs
[15:22:59 INFO]:     Line: execute console command: "restart"
[15:22:59 INFO]:  
[15:22:59 INFO]: Line 2: (24/7.sk)
[15:22:59 INFO]:     Can't understand this condition/effect: loop all players
[15:22:59 INFO]:     Line: loop all players
[15:22:59 INFO]:  
[15:22:59 INFO]: [Skript] Encountered 8 errors while reloading 7.sk! (12ms)

Odnośnik do komentarza
https://skript.pl/temat/54156-napisze-kto%C5%9B-skrypt-na-automatyczny-restart-serwera/#findComment-328995
Udostępnij na innych stronach

  • 0
every 15 minutes:
	loop all players:
		add loop-player to {_players::*}
	if size of {_players::*} < 1:
		execute console command: "save-all"
		execute console command: "restart"
	else if {_players::*} is not set:
		execute console command: "save-all"
		execute console command: "restart"

dwukropka po loop all players brakowało, przepraszam pisane na szybko

Edytowane przez Saanjuk
Odnośnik do komentarza
https://skript.pl/temat/54156-napisze-kto%C5%9B-skrypt-na-automatyczny-restart-serwera/#findComment-328997
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ę...