このプログラムで(例)のように表示させる事ってできますか?
*ranking1 redraw 0 await 50 notesel but noteload "ランキング.txt" repeat 5 noteget ra,cnt noteget r2(cnt),5+cnt r1.cnt = int(ra) loop noteunsel mes but redraw 1 await 50 goto *ranking1 *ranking2 notesel buf noteload "ランキング.txt" repeat 5 noteget ra,cnt noteget na(cnt),5 + cnt toku.cnt = int(ra) loop noteunsel if tokuten <= r1.4 : goto *menu : else : goto *ranking3 *ranking3 ;名前の書き込み cls picload "haikei 3.jpg" pos 190,10 font "MSゴシック",50 mes "ランキング" font "MSゴシック",20 pos 200,100 mes "名前を入力してください" name = "" pos 250,130 input name,80,20 pos 250,155 button "クリック",*ranking4 stop *ranking4 ;順位の入れ替え namec = strlen(name) if namec < 0 | namec > 6 : goto *ranking3 cls toku.4 = tokuten na.4 = name cnt1 = 4 : cnt2 = 3 : iti1 = 0 : iti2 = 0 repeat 4 if toku.cnt1 > toku.cnt2 { iti1 = toku.cnt1 iti2 = na.cnt1 toku.cnt1 = toku.cnt2 toku.cnt2 = iti1 na.cnt1 = na.cnt2 na.cnt2 = iti2 } cnt1 -= 1 : cnt2 -= 1 loop notesel but noteload "ランキング.txt" repeat 5 noteadd str(toku(cnt)),cnt,1 noteadd na(cnt),5 + cnt,1 loop notesave "ランキング.txt" noteunsel goto *ranhyouji
(例)
1 0000 aaaa
2 0000 bbbb
3 0000 cccc
4 0000 dddd
5 0000 eeee
よろしくお願いします