Skocz do zawartości
  • 0

Menu - problem z wyświetlaniem głowy gracza.


Mr. Edgarsz

Pytanie

Witam,

Mam taki kawałek kodu:

open chest with 2 rows named "&3&lRanking &6PVP" to player			wait 1 tick			loop 10 times:				set {_} to loop-number				if {_} is "1":					format slot {_}-1 of player with 1 of head named "&3&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&3%{eranking::top::position%loop-number%::points}%"				if {_} is "2":					format slot {_}-1 of player with 1 of head named "&6&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&6%{eranking::top::position%loop-number%::points}%"				if {_} is "3":					format slot {_}-1 of player with 1 of head named "&7&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&7%{eranking::top::position%loop-number%::points}%"				else:					format slot {_}-1 of player with 1 of head named "&8&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&8%{eranking::top::position%loop-number%::points}%" 
i teraz problem jest taki że serwer wywala mi błąd taki:

[22:45:49] [Server thread/ERROR]: 'player with 1' is not a number (test3.sk, line 69: format slot {_}-1 of player with 1 of head named "&3&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&3%{eranking::top::position%loop-number%::points}%"')[22:45:49] [Server thread/ERROR]: 'player with 1' is not a number (test3.sk, line 71: format slot {_}-1 of player with 1 of head named "&6&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&6%{eranking::top::position%loop-number%::points}%"')[22:45:50] [Server thread/ERROR]: 'player with 1' is not a number (test3.sk, line 73: format slot {_}-1 of player with 1 of head named "&7&l%loop-number%. %{eranking::top::position%loop-number%::nick}%" with lore "&7%{eranking::top::position%loop-number%::points}%"') 
Proszę o szybką pomoc.
Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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