한국산로얄감자
대표칭호 없음
이해도 | 1.16 |
---|---|
게임버전 (JE) | 페이퍼 |
스크립트 애드온 | 2.6 alpha1 |
도와주세요!loop player의 모자를 감지하려 했는데, 오류가 났어요!
코드:
every 10 tick: loop all players: if loop player's helmet is not air: set {_lore::*} to uncolored lore of loop-player's helmet loop {_lore::*}: if {_lore::%loop-index%} contains "체력": set {_health} to "%{_lore::%loop-index%}%" replace all " " and "-" and "체력" with "" in {_health} set {helmet::%loop-player%::health}to {_health} parsed as number else: # 추가로 여기에도 에러가 났어요! delete {helmet::%loop-player%::*}
에러 내용 :
[Skript] Can't compare 'loop player's helmet' with an item type (스텟.sk, line 8: if loop player's helmet is not air:')
[11:42:18 ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else if' section (스텟.sk, line 15: else:')
거너아나
2021.06.01loop-player
스크립터브혼
2021.06.01loop 값은 'loop-'가 머릿말입니다.
[Loop-Value]
> loop-player
한국산로얄감자
2021.06.01감사함다!행복하세요!