개인 자료란 (JE)

  서버 커뮤니티

Profile 수바긔 대표칭호 없음
Profile

이해도 초보자 
게임버전 (JE) 1.12.2 
게임버전 (BE) 1.12.x 
스크립트 버전 2.6.4 
스크립트 애드온 skrayfall 

스코어보드 스크립트를 짜봤는데

#스코어보드 스크립트


every 1 seconds:

    delete {rangking::*}

    loop all players:

        set {ranking::%{%loop-player%.돈}%} to loop-player

    set {_n} to 0

    loop {rangking::*}:

        add 1 to {_n}

        if {_n} is size of {rangking::*}:

            set {_Top1} to loop-value

            set {_Top1Value} to loop-index

        set {_size} to size of {rangking::*} - 1

        if {_n} is {_size}:

            set {_Top} to loop-value

            set {_Top2Value} to loop-index

        set {_size} to size of {rangking::*} - 2

        if {_n} is {_size}:

            set {_Top3} to loop-value

            set {_Top3Value} to loop-index

    loop all players:

        if {스코어보드.%loop-player%} is true:

            wipe loop-player's sidebar

            set name of sidebar of loop-player to "   &l&8[ &l&aSoobak Server &l&8]"

            set {_Top1Value} to {_Top1Value} parsed as number

            set {_Top2Value} to {_Top2Value} parsed as number

            set {_Top3Value} to {_Top3Value} parsed as number

            set score "&l====================" in sidebar of loop-player to 17

            set score "&l&7> &l&b닉네임" in sidebar of loop-player to 16

            set score "- %loop-player%" in sidebar of loop-player to 15

            set score "  " in sidebar of loop-player to 14

            set score "&l&7> &l&b보유한 돈" in sidebar of loop-player to 13

            set score "- %{%loop-player%.돈}%원" in sidebar of loop-player to 12

            set score "" in sidebar of loop-player to 11

            set score "&l&7> &l&b현재 접속자 수" in sidebar of loop-player to 10

            set score "- &e%number of all players%&f / 100" in sidebar of loop-player to 9

            set score " " in sidebar of loop-player to 8

            set score "&l&7> &l&b현재 랭킹" in sidebar of loop-player to 6

            

            set score "&aTop 1 : %{_Top1}%" in sidebar of loop-player to {_Top1Value}

            set score "&aTop 2 : %{_Top2}%" in sidebar of loop-player to {_Top2Value}

            set score "&aTop 3 : %{_Top3}%" in sidebar of loop-player to {_Top3Value}


구문에서 every 1 seconds 때문에 cmd에서 플레이어가 서버에 들어왔을때 1초마다 이 문구가 무한으로 뜨더군요.

어떤식으로 해결해야할지 모르겠어서 질문드립니다,..




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 4

KHC

2024-10-25

2

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2

/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

1

/files/thumbnails/348/896/003/262x150.crop.jpg?20241006103035

디도스/봇테러등등을 낚는 방법 4

물귀신

2024-10-06

3