Skocz do zawartości
  • 0

W Tym Skrypcie Jest Błąd Tylko że nie wiem o co chodzi z tym błędem


wiktorpikachuyt
 Udostępnij

Pytanie

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %totalkill% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

Błędy

[19:36:11 ERROR]: 'score " &c&lZabiles &7> %totalkill% "in sidebar' is not a number (scoreboard.sk, line 9: set score " &c&lZabiles &7> %totalkill% "in sidebar of loop-player to 6')

 

Odnośnik do komentarza
Udostępnij na innych stronach

14 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

W tej lini użyłeś Expression o nazwie "totalkill" - a taki nie istnieje

Prawdopodobnie chciałeś użyć placeholdera w skripcie - do tego wymagany jest specjalny dodatek, np. Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
EDIT: Jeżeli chciałeś użyć zmiennej to zamień %totalkill% na %{nazwa::zmiennej}%

Edytowane przez W1tt
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
24 minuty temu, wiktorpikachuyt napisał:
options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %totalkill% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

Błędy

[19:36:11 ERROR]: 'score " &c&lZabiles &7> %totalkill% "in sidebar' is not a number (scoreboard.sk, line 9: set score " &c&lZabiles &7> %totalkill% "in sidebar of loop-player to 6')

 

Musisz dać tu zmienną gracza która ustala ile on zabił graczy

 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}


 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, Medyk324 napisał:

Musisz dać tu zmienną gracza która ustala ile on zabił graczy

 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}


 

jest ten sam błąd

 

 

Edytowane przez wiktorpikachuyt
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 minutę temu, wiktorpikachuyt napisał:

ten sam błąd

 

 

 Przepraszam mój błąd.
 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%loop-player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

 

Edytowane przez Medyk324
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

tak

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, wiktorpikachuyt napisał:

tak

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

.

Popraw na


 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%loop-player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Medyk324 napisał:

Popraw na


 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%loop-player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

 

Pokazuje bez błędów ale nie ma scoreboard

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, wiktorpikachuyt napisał:

Pokazuje bez błędów ale nie ma scoreboard

 



Sprawdz

 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "test"
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%loop-player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

 

Edytowane przez Medyk324
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

 

7 minut temu, Medyk324 napisał:



Sprawdz

 

options:
    server: &c&lSurvivalPlusGildie
    
every 1 second:
    loop all players:
        set {_online} to number of all players
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "test"
        set score "&7&m---------------------" in sidebar of loop-player to 7
        set score " &c&lZabiles &7> %{totalkill::%loop-player%}% " in sidebar of loop-player to 6
        set score " &c&lGracz  &7> %loop-player%" in sidebar of loop-player to 5
        set score "                         " in sidebar of loop-player to 4
        set score " &c&lGracze Aktywni &7> %{_online}%" in sidebar of loop-player to 3
        set score "&7&m --------------------" in sidebar of loop-player to 2
        set score "  &7SurvivalPlusGildie.ga" in sidebar of loop-player to 1

on death:
    if attacker is a player:
        if victim is a player:
            add 1 to {totalkill::%attacker%}

 

[20:18:51 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (scoreboard.sk, line 20: add 1 to {totalkill::%attacker%')

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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