Skocz do zawartości
  • 0

Else if


xSztixPL

Pytanie

variables:	{grupa::%player%} = falseon chat:	{grupa::%player%} is true:		cancel event		loop all players:			{teamred.%loop-player%} is true:			send "&4%player% >> %message%" to loop-player			else if:				{teamblue.%loop-player%} is true:					send "&3%player% >> %message%" to loop-player				else if:					{teamyellow.%loop-player%} is true:						send "&6%player% >> %message%" to loop-playercommand /grupowy [<text&gt]:	trigger:		arg 1 is "on":			set {grupa::%player%} to true			send "&2Wlaczyles czat grupowy!"		arg 1 is "off":			set {grupa::%player%} to false			send "&2Wylaczyles czat grupowy!"

ej w 9 linijce blad ze else if is not boolean

#EDIT dodam ze samo else tez nie dziala

Edytowane przez xSztixPL
Odnośnik do komentarza
https://skript.pl/temat/8473-else-if/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:	{grupa::%player%} = falseon chat:	{grupa::%player%} is true:		cancel event		loop all players:			{teamred.%loop-player%} is true:			send "&4%player% >> %message%" to loop-player			else:			    if {teamblue.%loop-player%} is true:					send "&3%player% >> %message%" to loop-player				else if:					{teamyellow.%loop-player%} is true:						send "&6%player% >> %message%" to loop-player command /grupowy [<text&gt]:	trigger:		arg 1 is "on":			set {grupa::%player%} to true			send "&2Wlaczyles czat grupowy!"		arg 1 is "off":			set {grupa::%player%} to false			send "&2Wylaczyles czat grupowy!"
Odnośnik do komentarza
https://skript.pl/temat/8473-else-if/#findComment-66320
Udostępnij na innych stronach

  • 0
Gość DonFallingCookie

i ty jesteś w sdt :v

mozna by bylo inaczej, ale skoro chcesz tak to masz tak

on chat:    {grupa::%player%} is true:        cancel event        loop all players:            {teamred.%loop-player%} is true:                send "&4%player% >> %message%" to loop-player            else if {teamblue.%loop-player%} is true:                send "&3%player% >> %message%" to loop-player            else if {teamyellow.%loop-player%} is true:                send "&6%player% >> %message%" to loop-player
Odnośnik do komentarza
https://skript.pl/temat/8473-else-if/#findComment-66325
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ę...