on place:
if "%region at event-block%" contains "ele_":
if {praca::%player%} is "Elektryk":
if eventblock is not 152:
cancel event
else:
add 5 to {wyplata::%player%}
set action bar of player to "&7Praca: &6+5 zlotych"
wait 10 minutes
set event-block to air
if event-block is not redstone_lamp:
cancel event
else:
if block under event-block is not 152:
cancel event
else:
add 10 to {wyplata::%player%}
set action bar of player to "&7Praca: &6+10 zlotych"
wait 10 minutes
set %event-block% to air
else:
cancel event
send "&7Ty Tutaj nie Pracujesz!" to player
Lecz występuje błąd:
[14:17:33 ERROR]: Can't compare 'eventblock' with an integer (duda.sk, line 78: if eventblock is not 152:')
[14:17:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (duda.sk, line 80: else:')
[14:17:33 ERROR]: Can't compare a block with 'redstone_lamp' (duda.sk, line 85: if event-block is not redstone_lamp:')
[14:17:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (duda.sk, line 87: else:')
Pytanie
Qotrek 12
Mam taki kod:
on place: if "%region at event-block%" contains "ele_": if {praca::%player%} is "Elektryk": if eventblock is not 152: cancel event else: add 5 to {wyplata::%player%} set action bar of player to "&7Praca: &6+5 zlotych" wait 10 minutes set event-block to air if event-block is not redstone_lamp: cancel event else: if block under event-block is not 152: cancel event else: add 10 to {wyplata::%player%} set action bar of player to "&7Praca: &6+10 zlotych" wait 10 minutes set %event-block% to air else: cancel event send "&7Ty Tutaj nie Pracujesz!" to player
Lecz występuje błąd:
[14:17:33 ERROR]: Can't compare 'eventblock' with an integer (duda.sk, line 78: if eventblock is not 152:') [14:17:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (duda.sk, line 80: else:') [14:17:33 ERROR]: Can't compare a block with 'redstone_lamp' (duda.sk, line 85: if event-block is not redstone_lamp:') [14:17:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (duda.sk, line 87: else:')
Proszę o poprawe
Odnośnik do komentarza
Udostępnij na innych stronach
10 odpowiedzi na to pytanie
Rekomendowane odpowiedzi