Skocz do zawartości
  • 0

Pomocy!


chedbrand

Pytanie

Kod (nie zwracajcie uwagi na to ze to skrypt na ch):
 

command /ch:
    aliases: channel
    trigger:
        open chest inventory with 5 rows named "&6Kanały" to player
        set slot 0 of player's current inventory to green stained glass pane named "&f"
        set slot 1 of player's current inventory to lime stained glass pane named "&f"
        set slot 9 of player's current inventory to lime stained glass pane named "&f"
        set slot 8 of player's current inventory to green stained glass pane named "&f"
        set slot 7 of player's current inventory to lime stained glass pane named "&f"
        set slot 17 of player's current inventory to lime stained glass pane named "&f"
        set slot 36 of player's current inventory to green stained glass pane named "&f"
        set slot 27 of player's current inventory to lime stained glass pane named "&f"
        set slot 37 of player's current inventory to lime stained glass pane named "&f"
        set slot 44 of player's current inventory to green stained glass pane named "&f"
        set slot 35 of player's current inventory to lime stained glass pane named "&f"
        set slot 43 of player's current inventory to lime stained glass pane named "&f"
        set slot 3 of player's current inventory to white stained glass pane named "&f"
        set slot 4 of player's current inventory to white stained glass pane named "&f"
        set slot 5 of player's current inventory to white stained glass pane named "&f"
        set slot 40 of player's current inventory to white stained glass pane named "&f"
        set slot 39 of player's current inventory to white stained glass pane named "&f"
        set slot 41 of player's current inventory to white stained glass pane named "&f"
        set player's current inventory's slot 22 to minecart with chest named "&3SkyPvP &e#1" with lore "&f", and "&3Online Graczy: &e%amount of all players in world "world"%", and "", and "&eKliknij, aby dołączyć!"

on inventory click:
    if name of player's inventory is "&6Kanały":
        cancel event
        if clicked slot is 22:
            send title "&f" with subtitle "&7Pomyślnie zostałeś &3&npołączony&7 z kanałem: &eSKYPVP_1" for 5 seconds
            teleport player to {skypvp-1}


Błąd:
 

Spoiler

3I3XEM5.png

 

GRIERIOR

Formuję kod i wstawiam zdjęcie w spoiler.

Notatka dodana przez GRIERIOR

Odnośnik do komentarza
https://skript.pl/temat/57274-pomocy/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Czemu raz używasz 

12 minut temu, Jowiszek napisał:

set slot 40 of player's current inventory

a raz 

12 minut temu, Jowiszek napisał:

set player's current inventory's slot 22

 

Moja propozycja to przenieść część kodu odpowiedzialną za ilość graczy linijkę wyżej i przypisać wartość do jakiejś zmiennej, np {_worldAmount}, nazwa dowolna. Następnie tylko użyć tej zmiennej, bez niepotrzebnego martwienia się o cudzysłowy 

Odnośnik do komentarza
https://skript.pl/temat/57274-pomocy/#findComment-341336
Udostępnij na innych stronach

  • 0
11 godzin temu, Jowiszek napisał:

Kod (nie zwracajcie uwagi na to ze to skrypt na ch):

command /ch:
    aliases: channel
    trigger:
        open chest inventory with 5 rows named "&6Kanały" to player
        set slot 0 of player's current inventory to green stained glass pane named "&f"
        set slot 1 of player's current inventory to lime stained glass pane named "&f"
        set slot 9 of player's current inventory to lime stained glass pane named "&f"
        set slot 8 of player's current inventory to green stained glass pane named "&f"
        set slot 7 of player's current inventory to lime stained glass pane named "&f"
        set slot 17 of player's current inventory to lime stained glass pane named "&f"
        set slot 36 of player's current inventory to green stained glass pane named "&f"
        set slot 27 of player's current inventory to lime stained glass pane named "&f"
        set slot 37 of player's current inventory to lime stained glass pane named "&f"
        set slot 44 of player's current inventory to green stained glass pane named "&f"
        set slot 35 of player's current inventory to lime stained glass pane named "&f"
        set slot 43 of player's current inventory to lime stained glass pane named "&f"
        set slot 3 of player's current inventory to white stained glass pane named "&f"
        set slot 4 of player's current inventory to white stained glass pane named "&f"
        set slot 5 of player's current inventory to white stained glass pane named "&f"
        set slot 40 of player's current inventory to white stained glass pane named "&f"
        set slot 39 of player's current inventory to white stained glass pane named "&f"
        set slot 41 of player's current inventory to white stained glass pane named "&f"
        set player's current inventory's slot 22 to minecart with chest named "&3SkyPvP &e#1" with lore "&f", and "&3Online Graczy: &e%amount of all players in world "world"%", and "", and "&eKliknij, aby dołączyć!"

on inventory click:
    if name of player's inventory is "&6Kanały":
        cancel event
        if clicked slot is 22:
            send title "&f" with subtitle "&7Pomyślnie zostałeś &3&npołączony&7 z kanałem: &eSKYPVP_1" for 5 seconds
            teleport player to {skypvp-1}



Błąd:

3I3XEM5.png

tu podwójnie ##
#przed
minecart with chest named "&3SkyPvP &e#1"

# po
minecart with chest named "&3SkyPvP &e##1"

a tu możesz zamienić cudysłow na '' taki pojedynczy
# przed
"&3Online Graczy: &e%amount of all players in world "world"%"

# po
'&3Online Graczy: &e%amount of all players in world "world"%'

co do będu.

Odnośnik do komentarza
https://skript.pl/temat/57274-pomocy/#findComment-341342
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ę...