Skocz do zawartości
  • 0

Przetestujecie


Messie991

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Było 25 błędów (różnych) ale poprawiłem i zostały 2 ale nwm jak to naprawić:
 

send title from "&cOpuściłeś rozgrywke :(" to player for 80, 60, 20

 

Kod naprawiony:

Spoiler

variables:
 
    {HideAndSeek::gracz::kill::%player%} = 0
    {HideAndSeek::gracz::death::%player%} = 0
    {HideAndSeek::gracz::win::%player%} = 0
    {HideAndSeek::gracz::pkt::%player%} = 0
    {HideAndSeek::gracz::%player%::dolacz} = false
 
    {HideAndSeek::arena::start} = false
    {HideAndSeek::graczy} = 0
 
    {HideAndSeek::%player%::szukajacy} = false
    {HideAndSeek::%player%::howajacy} = false
 
 
options:
    # General
    prefix: &a[HideAndSeek]
    time countdown: 30          
    time out: 1800
    permission: HideAndSeek.*
    coins add: 50    
     
 
command /HideAndSeek [<text="info">] [<text>] [<text>]:
    aliases: has
    trigger:
        if arg 1 is "info":
            send "&8>============================={@prefix}&8============================="
            send " "
            send "&8> &6/HideAndSeek join &8- &7Dolacza do rozgrywki.&a? Komanda dostępna"
            send "&8> &6/HideAndSeek leave &8- &7Opuszcza rozgrywke.&c? Komanda niedostępna"
            send "&8> &6/HideAndSeek stats &8- &7Statystyki gracza.&a? Komanda dostępna"
            send "&8> &6/HideAndSeek vote &8- &7Glosuje na start gry.&c? Komanda niedostępna"
            send "&8>============================={@prefix}&8============================="
            if player has permission "{@permission}":
                send "&8>============================={@prefix}&8============================="
                send " "
                send "&8> &6/HideAndSeek setlobby &8- &7Ustawia lobby dla areny.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek reload &8- &7Przeladowuje skrypt.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek sethide &8- &7Ustawia spawn graczy chowających.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek setseek &8- &7Ustawia spawn graczy szukających.&a? Komanda dostępna"
            send " "
            send "&8>============================={@prefix}&8============================="    
 
        if arg 1 is "stats":
            send "&8>============================={@prefix}&8============================="
            send " "
            send "&8> Kille: %{HideAndSeek::gracz::kill::%player%}%"
            send "&8> Death: %{HideAndSeek::gracz::death::%player%}%"
            send "&8> Wygrane: %{HideAndSeek::gracz::win::%player%}%"
            send "&8> PKT: %{HideAndSeek::gracz::pkt::%player%}%"
            send "&8>============================={@prefix}&8============================="
 
        if arg 1 is "join":
            if {HideAndSeek::arena::start} = false:
                set {HideAndSeek::gracz::%player%::dolacz} to true
                teleport player to {HideAndSeek.lobby}
                add 1 to {HideAndSeek::graczy}
                set {HideAndSeek::%player%::howajacy} to true
                wait 1 second
                send title from "&aWitamy na arenie 1 w HideAndSeek" to player for 80, 60, 20
                wait 10 second
                chance of 45%:
                    set {HideAndSeek::%player%::szukajacy} to true
                if {HideAndSeek::graczy} = 5:
                    wait 5 second
                    set {HideAndSeek::arena::start} to true
                    wait 1 second
                    if {HideAndSeek::%player%::howajacy} is true:
                        teleport player to {Hide.Spawn}
                        send "&aSchowaj się dobrze :)"
                        execute console command "/give %player% 397:3 name:NICK_GRACZA_Z_TAKIM_SKINEM"
                        execute console command "/give %player% 271 name:Broń"
                        set {item.%player%} to slot 0 of player
                        set slot 0 of player to air
                        set player's helmet to { item.%player%}
                    else:      
                        if {HideAndSeek::%player%::szukajacy}:
                            wait 5 second
                            teleport player to {Seek.Spawn}
                            execute console command "/give %player% 272 name:Broń"
            else:
                send "&6Ta arena już wystartowała"   
 
        if arg 1 is "leave":
            execute player command "/spawn"
            remove 1 from {HideAndSeek::graczy}
            set {HideAndSeek::gracz::%player%::dolacz} to false
            send title from "&cOpuściłeś rozgrywke :(" to player for 80, 60, 20
 
 
        if arg 1 is "reload":
            execute console command "/sk reload %script%"
            send "&6Skrypt przeładowany"  
 
        if arg 1 is "sethide":
            set {Hide.Spawn} to location of player         
            send "&cUstawiłeś spawn Hide"
 
        if arg 1 is "setseek":
            set {Seek.Spawn} to location of player          
            send "&cUstawiłeś spawn Seek"
       
        if arg 1 is "setseek":
            set {HideAndSeek.lobby} to location of player           
            send "&cUstawiłeś lobby HideAndSeek"

 

Nie używa się czegoś takiego:

set {zamienna.%player%} = false

Tylko tak:

set {zmienna.%player%} to false

 

Lepiej używaj 1 tab zamiast 4 spacji bo to dziala tak samo a jest szybciej i nie pomylisz sie o 1 spacje czy cos - bo tutaj miales z 10 bledow z tymi spacjami

Edytowane przez Krzychu2016
Odnośnik do komentarza
https://skript.pl/temat/11988-przetestujecie/#findComment-85289
Udostępnij na innych stronach

  • 0
7 godzin temu, Krzychu2016 napisał:

Było 25 błędów (różnych) ale poprawiłem i zostały 2 ale nwm jak to naprawić:
 


send title from "&cOpuściłeś rozgrywke :(" to player for 80, 60, 20

 

Kod naprawiony:

  Ukryj zawartość


variables:
 
    {HideAndSeek::gracz::kill::%player%} = 0
    {HideAndSeek::gracz::death::%player%} = 0
    {HideAndSeek::gracz::win::%player%} = 0
    {HideAndSeek::gracz::pkt::%player%} = 0
    {HideAndSeek::gracz::%player%::dolacz} = false
 
    {HideAndSeek::arena::start} = false
    {HideAndSeek::graczy} = 0
 
    {HideAndSeek::%player%::szukajacy} = false
    {HideAndSeek::%player%::howajacy} = false
 
 
options:
    # General
    prefix: &a[HideAndSeek]
    time countdown: 30          
    time out: 1800
    permission: HideAndSeek.*
    coins add: 50    
     
 
command /HideAndSeek [<text="info">] [<text>] [<text>]:
    aliases: has
    trigger:
        if arg 1 is "info":
            send "&8>============================={@prefix}&8============================="
            send " "
            send "&8> &6/HideAndSeek join &8- &7Dolacza do rozgrywki.&a? Komanda dostępna"
            send "&8> &6/HideAndSeek leave &8- &7Opuszcza rozgrywke.&c? Komanda niedostępna"
            send "&8> &6/HideAndSeek stats &8- &7Statystyki gracza.&a? Komanda dostępna"
            send "&8> &6/HideAndSeek vote &8- &7Glosuje na start gry.&c? Komanda niedostępna"
            send "&8>============================={@prefix}&8============================="
            if player has permission "{@permission}":
                send "&8>============================={@prefix}&8============================="
                send " "
                send "&8> &6/HideAndSeek setlobby &8- &7Ustawia lobby dla areny.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek reload &8- &7Przeladowuje skrypt.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek sethide &8- &7Ustawia spawn graczy chowających.&a? Komanda dostępna"
                send "&8> &6/HideAndSeek setseek &8- &7Ustawia spawn graczy szukających.&a? Komanda dostępna"
            send " "
            send "&8>============================={@prefix}&8============================="    
 
        if arg 1 is "stats":
            send "&8>============================={@prefix}&8============================="
            send " "
            send "&8> Kille: %{HideAndSeek::gracz::kill::%player%}%"
            send "&8> Death: %{HideAndSeek::gracz::death::%player%}%"
            send "&8> Wygrane: %{HideAndSeek::gracz::win::%player%}%"
            send "&8> PKT: %{HideAndSeek::gracz::pkt::%player%}%"
            send "&8>============================={@prefix}&8============================="
 
        if arg 1 is "join":
            if {HideAndSeek::arena::start} = false:
                set {HideAndSeek::gracz::%player%::dolacz} to true
                teleport player to {HideAndSeek.lobby}
                add 1 to {HideAndSeek::graczy}
                set {HideAndSeek::%player%::howajacy} to true
                wait 1 second
                send title from "&aWitamy na arenie 1 w HideAndSeek" to player for 80, 60, 20
                wait 10 second
                chance of 45%:
                    set {HideAndSeek::%player%::szukajacy} to true
                if {HideAndSeek::graczy} = 5:
                    wait 5 second
                    set {HideAndSeek::arena::start} to true
                    wait 1 second
                    if {HideAndSeek::%player%::howajacy} is true:
                        teleport player to {Hide.Spawn}
                        send "&aSchowaj się dobrze :)"
                        execute console command "/give %player% 397:3 name:NICK_GRACZA_Z_TAKIM_SKINEM"
                        execute console command "/give %player% 271 name:Broń"
                        set {item.%player%} to slot 0 of player
                        set slot 0 of player to air
                        set player's helmet to { item.%player%}
                    else:      
                        if {HideAndSeek::%player%::szukajacy}:
                            wait 5 second
                            teleport player to {Seek.Spawn}
                            execute console command "/give %player% 272 name:Broń"
            else:
                send "&6Ta arena już wystartowała"   
 
        if arg 1 is "leave":
            execute player command "/spawn"
            remove 1 from {HideAndSeek::graczy}
            set {HideAndSeek::gracz::%player%::dolacz} to false
            send title from "&cOpuściłeś rozgrywke :(" to player for 80, 60, 20
 
 
        if arg 1 is "reload":
            execute console command "/sk reload %script%"
            send "&6Skrypt przeładowany"  
 
        if arg 1 is "sethide":
            set {Hide.Spawn} to location of player         
            send "&cUstawiłeś spawn Hide"
 
        if arg 1 is "setseek":
            set {Seek.Spawn} to location of player          
            send "&cUstawiłeś spawn Seek"
       
        if arg 1 is "setseek":
            set {HideAndSeek.lobby} to location of player           
            send "&cUstawiłeś lobby HideAndSeek"

 

Nie używa się czegoś takiego:


set {zamienna.%player%} = false

Tylko tak:


set {zmienna.%player%} to false

 

Lepiej używaj 1 tab zamiast 4 spacji bo to dziala tak samo a jest szybciej i nie pomylisz sie o 1 spacje czy cos - bo tutaj miales z 10 bledow z tymi spacjami

 

 

 

 

Tak tylko

Odnośnik do komentarza
https://skript.pl/temat/11988-przetestujecie/#findComment-85318
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ę...