Skocz do zawartości
  • 0

Dlaczego ten skrypt nie działa?


SzoMeK

Pytanie

 Witam mam taki problem iż ten skrypt nie chcę działać i niewiem jak naprawić.Informuję iż jestem początkujący w pisaniu skryptów.

                                                                                                                                                                                     Oto kod :
command /ox [<text>]:
    trigger:
        if argument 1 is not set:
            send "&eKomendy:"
            send "&e/ox start"
            send "&e/ox stop"
        if argument 1 is "start":
            set {OX} to true
            send "&aWLACZONO POMYSLNIE OX" to player
        every tick:
    If {OX} is true:
        send "[&4&lEVENT&r]&eOX JUZ JEST DOSTEPNY!&a/WARP OX" to all players
        if argument 1 is "stop"
        set {OX} to false
        send "&cWYLACZONO POMYSLNIE OX" to player

                                Wyskakuję mi błąd w consoli serwera:
[16:04:35 ERROR]: [Skript] Unexpected entry 'If {OX} is true'. Check whether it's spelled correctly or remove it. (ox.sk, line 11: If {OX} is true:') [16:04:35 ERROR]: [Skript] can't understand this condition: 'every tick' (ox.sk, line 10: every tick:')

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

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 1

Every nie dajemy w srodku kodu.

 

command /ox [<text>]:
    trigger:
        if argument 1 is not set:
            send "&aKomendy:"
            send "&2/ox start"
            send "&a/ox stop"
        if argument 1 is "start":
            set {OX} to true
            send "&aWLACZONO POMYSLNIE OX" to player
            while {OX} is true:
                send "[&4&lEVENT&r]&eOX JUZ JEST DOSTEPNY!&a/WARP OX" to all players
                wait 10 seconds
        if argument 1 is "stop"
            set {OX} to false
            send "&cWYLACZONO POMYSLNIE OX" to player 

Jeśli już to coś takie @SzoMeK

Odnośnik do komentarza
Udostępnij na innych stronach

  • 1
variables:
    {OX} = false
command /ox [<text>]:
    trigger:
        if argument 1 is not set:
            send "&aKomendy:"
            send "&2/ox start"
            send "&a/ox stop"
        if argument 1 is "start":
            set {OX} to true
            send "&aWLACZONO POMYSLNIE OX" to player
            while {OX} is true:
                send "[&4&lEVENT&r]&eOX JUZ JEST DOSTEPNY!&a/WARP OX" to all players
                wait 10 seconds
        if argument 1 is "stop"
            set {OX} to false
            send "&cWYLACZONO POMYSLNIE OX" to player 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

                Dziękuje wszystkim  za waszą pomoc.

                                              Temat do zamkniecia..                               

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

  • 0
Dnia 2.12.2017 o 22:30, SzoMeK napisał:

 Witam mam taki problem iż ten skrypt nie chcę działać i niewiem jak naprawić.Informuję iż jestem początkujący w pisaniu skryptów.

                                                                                                                                                                                     Oto kod :
command /ox [<text>]:
    trigger:
        if argument 1 is not set:
            send "&eKomendy:"
            send "&e/ox start"
            send "&e/ox stop"
        if argument 1 is "start":
            set {OX} to true
            send "&aWLACZONO POMYSLNIE OX" to player
        every tick:
    If {OX} is true:
        send "[&4&lEVENT&r]&eOX JUZ JEST DOSTEPNY!&a/WARP OX" to all players
        if argument 1 is "stop"
        set {OX} to false
        send "&cWYLACZONO POMYSLNIE OX" to player

                                Wyskakuję mi błąd w consoli serwera:
[16:04:35 ERROR]: [Skript] Unexpected entry 'If {OX} is true'. Check whether it's spelled correctly or remove it. (ox.sk, line 11: If {OX} is true:') [16:04:35 ERROR]: [Skript] can't understand this condition: 'every tick' (ox.sk, line 10: every tick:')

W "every tick" nie napisałes przed słowem "tick" liczby

W "If {OX} is true:" if napisałeś z dużej litery. Powinno być "if", a nie "If"

Odnośnik do komentarza
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ę...