Ten kod ma sprawdzać co 1 min. ile gracz ma pkt w zmiennej jeśli ma np. 2000 to ustawia poziom na 2 itd. Dlaczego to tak nie działa?
every 60 seconds:
loop all players:
if {exp::%loop-player%} is 1000:
set {poziom::%loop-player%} to 1
if {exp::%loop-player%} is 2000:
set {poziom::%loop-player%} to 2
if {exp::%loop-player%} is 3000:
set {poziom::%loop-player%} to 3
if {exp::%loop-player%} is 4000:
set {poziom::%loop-player%} to 4
if {exp::%loop-player%} is 5000:
set {poziom::%loop-player%} to 5
if {exp::%loop-player%} is 6000:
set {poziom::%loop-player%} to 6
if {exp::%loop-player%} is 7000:
set {poziom::%loop-player%} to 7
if {exp::%loop-player%} is 8000:
set {poziom::%loop-player%} to 8
if {exp::%loop-player%} is 9000:
set {poziom::%loop-player%} to 9
if {exp::%loop-player%} is 10000:
set {poziom::%loop-player%} to 10
Jeśli jest na forum jakiś skrypt na levele lub plugin to możecie poinformować.
Pytanie
Mr_0VERR 12
Ten kod ma sprawdzać co 1 min. ile gracz ma pkt w zmiennej jeśli ma np. 2000 to ustawia poziom na 2 itd. Dlaczego to tak nie działa?
every 60 seconds: loop all players: if {exp::%loop-player%} is 1000: set {poziom::%loop-player%} to 1 if {exp::%loop-player%} is 2000: set {poziom::%loop-player%} to 2 if {exp::%loop-player%} is 3000: set {poziom::%loop-player%} to 3 if {exp::%loop-player%} is 4000: set {poziom::%loop-player%} to 4 if {exp::%loop-player%} is 5000: set {poziom::%loop-player%} to 5 if {exp::%loop-player%} is 6000: set {poziom::%loop-player%} to 6 if {exp::%loop-player%} is 7000: set {poziom::%loop-player%} to 7 if {exp::%loop-player%} is 8000: set {poziom::%loop-player%} to 8 if {exp::%loop-player%} is 9000: set {poziom::%loop-player%} to 9 if {exp::%loop-player%} is 10000: set {poziom::%loop-player%} to 10Jeśli jest na forum jakiś skrypt na levele lub plugin to możecie poinformować.
Odnośnik do komentarza
https://skript.pl/temat/38316-problem-z-skryptem/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi