Skocz do zawartości
  • 0

Problem z dawaniem itemu


Pytanie

Witam ponownie

mam problem z 1 z moich skryptów i wyskakuje mi taki błąd:

https://imgur.com/a/6k0JOrA 

kod: 

jak ktoś wie jak to naprawić to bym prosił o pomoc.

Edytowane przez Szifter
Odnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
    tag:&8»&c&lBronie&8»
    tagII:&8»&c&lBronie&8«
command /dajbron [<offline player>] [<text>] [<integer>]:
    trigger:
        if player has permission "dajbron.db":
            if arg 1 is set:
                if arg 1 is online:
                    if arg 3 is set:
                        if arg 2 is set:                      
                            if arg 2 is "AWP":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 bow of power 25 and flame 15 and unbreaking 10 and infinity 10 named "&2&lA&0.&2&lW&0.&2&lP" with lore "&6&lTa legendarna &2&nSnajperka||&c&lma 0,001%% szans||&4&lNa One Shota" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is "amuletprosa":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 of 399 of unbreaking 1000 and infinity 1000 named "&e&lLegendarny&c&lAmulet" with lore "&6Po użyciu dostaniesz 3 efekty||&4&lSiły 4||&b&lSpeeda 4||&e&lHaste 4" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is not "AWP" or "amuletprosa":
                                send "" to player
                                send "&8——————————————→ {@tagII} &8←——————————————" to player
                                send "&8»&7Poprawne użycie:" to player
                                send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                                send "" to player
                        if arg 2 is not set:
                            send "" to player
                            send "&8——————————————→ {@tagII} &8←——————————————" to player
                            send "&8»&7Poprawne użycie:" to player
                            send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                            send "" to player
                    else:
                        send "&8»&7Podaj ilość" to player
                else:
                    send "&8»&7Podaj nick gracza online" to player
            else:
                send "&8»&7Podaj nick gracza" to player
        else:
            send "&8»&7Nie posiadasz permisji!" to player

Jeśli chcesz użyć % w skrypcie musisz zrobić 2x %

Np "&c&lma 0,001%% szans..."

A drugi błąd był od tego, że zapomniałeś dać - to player (w linijce 20)

Edytowane przez Magiczny_Miki
Odnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217282
Udostępnij na innych stronach

  • 0
6 minut temu, Magiczny_Miki napisał:

options:
    tag:&8»&c&lBronie&8»
    tagII:&8»&c&lBronie&8«
command /dajbron [<offline player>] [<text>] [<integer>]:
    trigger:
        if player has permission "dajbron.db":
            if arg 1 is set:
                if arg 1 is online:
                    if arg 3 is set:
                        if arg 2 is set:                      
                            if arg 2 is "AWP":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 bow of power 25 and flame 15 and unbreaking 10 and infinity 10 named "&2&lA&0.&2&lW&0.&2&lP" with lore "&6&lTa legendarna &2&nSnajperka||&c&lma 0,001%% szans||&4&lNa One Shota" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is "amuletprosa":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 of 399 of unbreaking 1000 and infinity 1000 named "&e&lLegendarny&c&lAmulet" with lore "&6Po użyciu dostaniesz 3 efekty||&4&lSiły 4||&b&lSpeeda 4||&e&lHaste 4" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is not "AWP" or "amuletprosa":
                                send "" to player
                                send "&8——————————————→ {@tagII} &8←——————————————" to player
                                send "&8»&7Poprawne użycie:" to player
                                send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                                send "" to player
                        if arg 2 is not set:
                            send "" to player
                            send "&8——————————————→ {@tagII} &8←——————————————" to player
                            send "&8»&7Poprawne użycie:" to player
                            send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                            send "" to player
                    else:
                        send "&8»&7Podaj ilość" to player
                else:
                    send "&8»&7Podaj nick gracza online" to player
            else:
                send "&8»&7Podaj nick gracza" to player
        else:
            send "&8»&7Nie posiadasz permisji!" to player

Jeśli chcesz użyć % w skrypcie musisz zrobić 2x %

Np "&c&lma 0,001%% szans..."

A drugi błąd był od tego, że zapomniałeś dać - to player (w linijce 20)

dalej jest błąd ale tylko 1 https://imgur.com/a/KNNDd3m

Odnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217284
Udostępnij na innych stronach

  • 0
4 minuty temu, Magiczny_Miki napisał:

Mi bez problemu załadowało wszystko.

a ty tam dałeś %%

 

options:
    tag:&8»&c&lBronie&8»
    tagII:&8»&c&lBronie&8«
command /dajbron [<offline player>] [<text>] [<integer>]:
    trigger:
        if player has permission "dajbron.db":
            if arg 1 is set:
                if arg 1 is online:
                    if arg 2 is set: 
                        if arg 3 is set:                      
                            if arg 2 is "AWP":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 bow of power 25 and flame 15 and ubreaking 10 and infinity 5 named "&2&lA&0.&2&lW&0.&2&lP" with lore "&6&lTa legendarna &2&nSnajperka||&c&lma 0.001%%  szans||&4&lNa One Shota" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is "amuletprosa":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 nether star of unbreaking 1000 and infinity 1000 named "&e&lLegendarny&c&lAmulet" with lore "&6Po użyciu dostaniesz 3 efekty||&4&lSiły 4||&b&lSpeeda 4||&e&lHaste 4" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is not "AWP" or "amuletprosa":
                                send "" to player
                                send "&8——————————————→ {@tagII} &8←——————————————" to player
                                send "&8»&7Poprawne użycie:" to player
                                send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                                send "" to player
                        else:
                            send "&8»&7Podaj ilość" to player
                    if arg 2 is not set:
                        send "" to player
                        send "&8——————————————→ {@tagII} &8←——————————————" to player
                        send "&8»&7Poprawne użycie:" to player
                        send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                        send "" to player
                else:
                    send "&8»&7Podaj nick gracza online" to player
            else:
                send "&8»&7Podaj nick gracza" to player
        else:
            send "&8»&7Nie posiadasz permisji!" to player

Edytowane przez CyganeczekPL
Odnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217286
Udostępnij na innych stronach

  • 0
5 minut temu, CyganeczekPL napisał:

a ty tam dałeś %%

 

options:
    tag:&8»&c&lBronie&8»
    tagII:&8»&c&lBronie&8«
command /dajbron [<offline player>] [<text>] [<integer>]:
    trigger:
        if player has permission "dajbron.db":
            if arg 1 is set:
                if arg 1 is online:
                    if arg 2 is set: 
                        if arg 3 is set:                      
                            if arg 2 is "AWP":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 bow of power 25 and flame 15 and ubreaking 10 and infinity 5 named "&2&lA&0.&2&lW&0.&2&lP" with lore "&6&lTa legendarna &2&nSnajperka||&c&lma 0.001%%  szans||&4&lNa One Shota" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is "amuletprosa":
                                set {_ilosc} to arg 3
                                loop {_ilosc} times:
                                    give 1 nether star of unbreaking 1000 and infinity 1000 named "&e&lLegendarny&c&lAmulet" with lore "&6Po użyciu dostaniesz 3 efekty||&4&lSiły 4||&b&lSpeeda 4||&e&lHaste 4" to player
                                send "{@tag}&7Dałeś %arg 3% %arg 2% graczowi %arg 1%" to player
                                send "{@tag}&7Dostałeś %arg 3% %arg 2% od administratora %player%" to arg 1
                            if arg 2 is not "AWP" or "amuletprosa":
                                send "" to player
                                send "&8——————————————→ {@tagII} &8←——————————————" to player
                                send "&8»&7Poprawne użycie:" to player
                                send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                                send "" to player
                        else:
                            send "&8»&7Podaj ilość" to player
                    if arg 2 is not set:
                        send "" to player
                        send "&8——————————————→ {@tagII} &8←——————————————" to player
                        send "&8»&7Poprawne użycie:" to player
                        send "&8»&7/dajbron nick | AWP,amuletprosa | ilosc" to player
                        send "" to player
                else:
                    send "&8»&7Podaj nick gracza online" to player
            else:
                send "&8»&7Podaj nick gracza" to player
        else:
            send "&8»&7Nie posiadasz permisji!" to player

Tutaj masz literówkę, bo masz napisane ubreking. Powinno być unbreaking.

Edytowane przez Magiczny_Miki
Odnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217287
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ę...