プレイ日記
Aaron Krondelo
Okay this seems like a bug, I've done this before no problem. Why am I getting 'subscript out of range' on line 78? The button input shouldn't work if it will go out of bounds!
1そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
I guess that CX is bigger than or equal to LEN(N$) when the error occurs. Could you try to replace as follows? [line 61] Replace CX=CX+1 with CX=CX+(CX<(LEN(N$)-1)) [line 65] Replace CX=CX-1 with CX=CX-(CX>0)
1そうだね
未プレイ
返信[2]
親投稿
Aaron Krondelo
Thanks @Hanzo! I don't know why but it worked! I just don't understand why Lines 59 and 63 didn't do that!?
0そうだね
プレイ済み
返信[3]
親投稿
Hanzo rzsense
CX should be 0 to LEN(N$)-1. However, your lines 59 and 63 allow CX to be -1 to LEN(N$).
1そうだね
未プレイ
返信[4]
親投稿
Aaron Krondelo
Thankyou, but shouldn't CX ›= 0 keep CX to 0+?
0そうだね
プレイ済み
返信[5]
親投稿
Aaron Krondelo
Uhg, nevermind. I was being stupid. Should be IF CX>0
1そうだね
プレイ済み
返信[6]
親投稿
SıмΞоп SimeonW
Hanzo saves the day once again
1そうだね
プレイ済み