개인 자료란 (JE)

  서버 커뮤니티

Profile HUN 대표칭호 없음
Profile

질문하기 스크립트

도와주세요ㅠㅠㅠㅠㅠ

2022.07.14 조회 수 284 추천 수 0
이해도 플러그인, 기타 
게임버전 (JE) 버킷 

variables:

    {money.%player%} = 0


command /돈관리 [<Text>] [<player>] [<integer>]:

    trigger:    

        if player is op:

            if arg 1 is not set:

                send "&f/돈관리 설정 [플레이어] [금액] &7- 플레이어의 돈을 설정합니다."

                send "&f/돈관리 주기 [플레이어] [금액] &7- 플레이어에게 돈을 줍니다."

            if arg 1 is set:

                if arg 1 is not "설정" or  "주기":

                    send "&a%arg 1%&f 어절은 올바르지 않은 어절입니다."

                if arg 1 is "설정":

                    if arg 2 is set:

                        if arg 3 is set:

                            set arg 2's money to arg 3 parsed as integer

                            send "&a&l%arg 2%&f님의 돈을 &e&l%arg 3%&f원으로 설정하였습니다."

                            send "&6%player%&f님께서 &6%arg 2%&f님의 세뱃돈을 &e&l%arg 3%&f원으로 설정했습니다." to arg 2 

                        else:

                            send "&f올바른 돈금액을 입력해주세요."

                    else:

                        send "&f올바른 플레이어명을 입력해주세요.

                if arg 1 is "주기":

                    if arg 2 is set:

                        if arg 3 is set:

                            add arg 3 parsed as integer to arg 2's money

                            send "&a&l%arg 2%&f님에게 &e&l%arg 3%&f원을 지급하였습니다."

                            send "&6%player%&f님께서 &6%arg 2%&f님에게 &e&l%arg 3%&f원을 지급하였습니다." to arg 2 

                        else:

                            send "&f올바른 돈금액을 입력해주세요."

                    else:

                        send "&f올바른 플레이어명을 입력해주세요."


set arg 2's money to arg 3 parsed as integer

add arg 3 parsed as integer to arg 2's money

이 두개가 계속 오류 뜨는데 머가 문제인지 모르겠어요

3개의 댓글

qsef1256
2022.07.14

arg 3 은 이미 Integer 입니다. 다시 변환할 필요가 없습니다. ([<integer>])

qsef1256
2022.07.14

그리고 오류는 전문을 올려주셔야 합니다.


다음에도 이렇게 올리면 답변이 제대로 안 될 수 있습니다

HUN
2022.07.14
@qsef1256

감사합니다ㅠㅠ 진짜 필요해서 다시글 올려보겠습니다.

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1