CyganeczekPL 0 Opublikowano 21 czerwca 2019 Udostępnij Opublikowano 21 czerwca 2019 (edytowane) 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 3 listopada 2019 przez Szifter Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 Magiczny_Miki 29 Opublikowano 21 czerwca 2019 Udostępnij Opublikowano 21 czerwca 2019 (edytowane) 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 21 czerwca 2019 przez Magiczny_Miki CyganeczekPL 1 Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217282 Udostępnij na innych stronach Więcej opcji udostępniania...
0 CyganeczekPL 0 Opublikowano 21 czerwca 2019 Autor Udostępnij Opublikowano 21 czerwca 2019 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 Więcej opcji udostępniania...
0 Magiczny_Miki 29 Opublikowano 21 czerwca 2019 Udostępnij Opublikowano 21 czerwca 2019 Mi bez problemu załadowało wszystko. Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217285 Udostępnij na innych stronach Więcej opcji udostępniania...
0 CyganeczekPL 0 Opublikowano 21 czerwca 2019 Autor Udostępnij Opublikowano 21 czerwca 2019 (edytowane) 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 21 czerwca 2019 przez CyganeczekPL Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217286 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Magiczny_Miki 29 Opublikowano 21 czerwca 2019 Udostępnij Opublikowano 21 czerwca 2019 (edytowane) 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 21 czerwca 2019 przez Magiczny_Miki Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217287 Udostępnij na innych stronach Więcej opcji udostępniania...
0 CyganeczekPL 0 Opublikowano 21 czerwca 2019 Autor Udostępnij Opublikowano 21 czerwca 2019 1 minutę temu, Magiczny_Miki napisał: Tutaj masz literówkę, bo masz napisane ubreking. Powinno być unbreaking. o kurde rzeczywiście Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217289 Udostępnij na innych stronach Więcej opcji udostępniania...
0 knugi 794 Opublikowano 22 czerwca 2019 Udostępnij Opublikowano 22 czerwca 2019 Problem został rozwiązany. Odnośnik do komentarza https://skript.pl/temat/33668-problem-z-dawaniem-itemu/#findComment-217332 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
CyganeczekPL 0
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 SzifterOdnośnik do komentarza
https://skript.pl/temat/33668-problem-z-dawaniem-itemu/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi