Skocz do zawartości
  • 0

Prosze o pomoc ;c [on chat:]


Pytanie

on chat:
    set player's display name to "&8[&3%{LVL:%player%}%&8] &7%player%"
    else:
        if player's has permission "Vip.wghc":
            set player's display name to "&8[&3%{LVL:%player%}%&8] &6%player%"
 
dlaczego to nie działa , prosze o pomoc ;c
   ERROR:
  [18:59:57 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (TQDrop 5.4.sk, line 453: else:')
Edytowane przez KaeN134331
Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

nie dawaj else

napisz tak:

on chat:
    set player's display name to "&8[&3%{LVL:%player%}%&8] &7%player%"
    if player has permission "Vip.wghc":
         set player's display name to "&8[&3%{LVL:%player%}%&8] &6%player%"
Edytowane przez marcino934
Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/#findComment-52830
Udostępnij na innych stronach

  • 0

chodzi o zmiane formatu?

on chat:

cancel event

if player have permissions "vip.wghc":

send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players

  else:

      if player have permissions "gracz":

          send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players

powinno działać. Wytabuj

Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/#findComment-52835
Udostępnij na innych stronach

  • 0

chodzi o zmiane formatu?

on chat:

cancel event

if player have permissions "vip.wghc":

send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players

  else:

      if player have permissions "gracz":

          send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players

powinno działać. Wytabuj

[20:28:15 ERROR]: indentation error: expected 6 spaces, but found 7 spaces (TQDrop 5.4.sk, line 454: send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players')
[20:28:15 ERROR]: indentation error: expected 6 spaces, but found 4 spaces (TQDrop 5.4.sk, line 455: else:')
[20:28:15 ERROR]: indentation error: expected 6 spaces, but found 9 spaces (TQDrop 5.4.sk, line 456: if player have permissions "gracz":')
[20:28:15 ERROR]: indentation error: expected 6 spaces, but found 14 spaces (TQDrop 5.4.sk, line 457: send "&8[&3%{LVL:%player%}%&8] &7%player%: &r%message%" to all players')
[20:28:15 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TQDrop 5.4.sk, line 453: if player have permissions "vip.wghc":')
Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/#findComment-52842
Udostępnij na innych stronach

  • 0
on chat:	cancel event	if player's has permission "Vip.wghc":		broacast "&8[&3%{LVL:%player%}%&8] &6%player% &7%message%"	else:		broacast "&8[&3%{LVL:%player%}%&8] &7%player% &7%message%"
[20:30:11 ERROR]: 'permission "Vip.wghc"' is not an item type (TQDrop 5.4.sk, line 453: if player's has permission "Vip.wghc":')
[20:30:11 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (TQDrop 5.4.sk, line 455: else:')

;c

Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/#findComment-52844
Udostępnij na innych stronach

  • 0

 

nie dawaj else

napisz tak:

on chat:
    set player's display name to "&8[&3%{LVL:%player%}%&8] &7%player%"
    if player has permission "Vip.wghc":
         set player's display name to "&8[&3%{LVL:%player%}%&8] &6%player%"

 

[20:33:19 ERROR]: indentation error: expected 1 tab, but found 2 tabs (TQDrop 5.4.sk, line 453: if player has permission "Vip.wghc":')
[20:33:19 ERROR]: indentation error: expected 1 tab, but found 3 tabs (TQDrop 5.4.sk, line 454: set player's display name to "&8[&3%{LVL:%player%}%&8] &6%player%"')

;c 

Odnośnik do komentarza
https://skript.pl/temat/6462-prosze-o-pomoc-c-on-chat/#findComment-52846
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ę...