Skocz do zawartości
  • 0

Czemu to nie działa?


Marcin2000Xpl

Pytanie

Czemu "if health of victim is smaller or equal to 2.0:" nie działa? Nie wyświetla się żaden błąd!

on damage:    if victim is not player:        stop    if attacker is not player:        stop    if {turniej.join::%victim%} is true:	    if victim is {_random1}:     	   if attacker is {_random2}:         	   if health of victim is smaller or equal to 2.0:
Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Trzymaj kod

on damage:    if victim is not player:        stop    if attacker is not player:        stop    if {turniej.join::%victim%} is true:        if victim is {_random1}:            if attacker is {_random2}:                if health of victim is smaller or equal to 2.0:                    cancel event                    broadcast "&6&lGracz &c&l%victim% &6&lprzegral!"
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on damage:    if victim is not player:        stop    if attacker is not player:        stop    if {turniej.join::%victim%} is true:        if victim is {_random1}:            if attacker is {_random2}:                if health of victim is smaller or equal than 2.0:

a jak nie to:

on damage:    if victim is not player:        stop    if attacker is not player:        stop    if {turniej.join::%victim%} is true:        if victim is {_random1}:            if attacker is {_random2}:                if health of victim is smaller than 2.0:				    #kod                else:                    if health of victim is smaller or equal than 2.0:				    #kod
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on damage of player:    attacker is player:        {turniej.join::%victim%} is true:

Do tego momentu kod jest poprawny. Sprawdzanie, czy poszkodowany/atakujący to {_random1} lub {_random2} jest niemożliwe, bo te zmienne nie zostały wcześniej wyznaczone :p

 

Co do tematu, to 

Smaller than or equal to

 a nie 

smaller or equal to
Odnośnik do komentarza
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ę...