Mam Taki Problem że pisze mi to w console w scripcie
'else' has to be placed just after another 'if' or 'else if' section
Line 8 else if player has not permission "Dawido.test":
Skrypt Podsylam mam nadzieje ze pomozecie :
command /buyrank [<text>]:
permission: Dawido.buyrank
permission message: &4&lNie masz dostepu do tej komendy! &7(&7Dawido.buyrank)
trigger:
if player has permission "Dawido.test":
send "{@tag}&c Już zakupiłeś ten przedmiot!" to player
stop
else if player has not permission "Dawido.test":
arg 1 is not set:
send " &4&lERROR ---> &c&lNie Wpisałeś Tajnej Liczby!"
if arg 1 is "1":
execute console command "is %player% VIP"
#send "&7[&6&lSKLEP&7] &e&lDziękujemy %player% za Zakup Rangi VIP!" to all players
if arg 1 is "2":
execute console command "is %player% SVIP"
#send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi SVIP!" to all players
if arg 1 is "3":
execute console command "is %player% MVIP"
#send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi MVIP!" to all players
if arg 1 is "4":
execute console command "is %player% BUTTER"
#send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi BUTTER!" to all players
Pytanie
dawid125439 1
Mam Taki Problem że pisze mi to w console w scripcie
'else' has to be placed just after another 'if' or 'else if' section
Line 8 else if player has not permission "Dawido.test":
Skrypt Podsylam mam nadzieje ze pomozecie :
command /buyrank [<text>]: permission: Dawido.buyrank permission message: &4&lNie masz dostepu do tej komendy! &7(&7Dawido.buyrank) trigger: if player has permission "Dawido.test": send "{@tag}&c Już zakupiłeś ten przedmiot!" to player stop else if player has not permission "Dawido.test": arg 1 is not set: send " &4&lERROR ---> &c&lNie Wpisałeś Tajnej Liczby!" if arg 1 is "1": execute console command "is %player% VIP" #send "&7[&6&lSKLEP&7] &e&lDziękujemy %player% za Zakup Rangi VIP!" to all players if arg 1 is "2": execute console command "is %player% SVIP" #send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi SVIP!" to all players if arg 1 is "3": execute console command "is %player% MVIP" #send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi MVIP!" to all players if arg 1 is "4": execute console command "is %player% BUTTER" #send "&7[&6&lSKLEP&7] &e&lDziękujemy %arg 1% za Zakup Rangi BUTTER!" to all playersWstawiam w code
Notatka dodana przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/57301-jak-naprawic-else-has-to-be-placed-just-after-another-if-or-else-if-section/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi