Skocz do zawartości
  • 0

Problem z Substringiem


Pytanie

Witam! Wie ktoś może dlaczego przy tym wyświetla mi się błąd? set {_gn} to substring of player's current inventory name from character 10 to (length of player's current inventory name)

Edytowane przez IgorM2008
Odnośnik do komentarza
https://skript.pl/temat/48674-problem-z-substringiem/
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /editrul [<text>]:
    trigger:
        if player is op:
            if arg 1 is set:
                if {ruletki::%arg 1%} is true:
                    open chest inventory with 6 rows named "&eEdytujesz &6%arg 1%&e:" to player
                    set slot 0 of player's current inventory to {slot::%arg 1%::0}
                    loop 53 times:
                        set slot loop-number of player's current inventory to {slot::%arg 1%::loop-number}
                else:
                    send "&cTaka ruletka nie istnieja!" to player
                    
on inventory close:
    set {_gn} to substring of player's current inventory name from character 10 to (length of player's current inventory name)
    if name of player's current inventory is "&eEdytujesz &6{_gn}&e:":
        set {slot::%{_gn}%::0} to slot 0 of player's current inventory
        loop 53 times:
            set {slot::%{_gn}%::loop-number} to slot loop-number of player's current inventory

 

wiktorm12

Zmieniam w code

Notatka dodana przez wiktorm12

Odnośnik do komentarza
https://skript.pl/temat/48674-problem-z-substringiem/#findComment-303350
Udostępnij na innych stronach

  • 0
9 minut temu, Mushkrem napisał:

 set {_gn} to event-inventory's name

 

ale to nie naprawi problemu bo to ma też slużyć jako nazwa ruletki do zapisania slotów nie ma czegoś innego? (wydaje mi sie ze ten substring to bedzie jedyna opcja)

Odnośnik do komentarza
https://skript.pl/temat/48674-problem-z-substringiem/#findComment-303354
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ę...