プレイ日記
Ep17 EmPx17
How do make this array smaller? if make it smaller it give me an error. ( its the map array for my fps.)
0そうだね
プレイ済み
返信[1]
親投稿
Ep17 EmPx17
It says out of DATA in 111.
0そうだね
プレイ済み
返信[2]
親投稿
Ep17 EmPx17
If i make it smaller it gives me an error* i was typing to fast and i had spelling errors.
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
I'm not very experienced with this engine, but I think line 263 defines the size of the array. Try changing that along with the array itself.
0そうだね
プレイ済み
返信[4]
親投稿
Ep17 EmPx17
I did that and it said "subscript out of range in 111".
0そうだね
プレイ済み
返信[5]
親投稿
Gale Storm GaleTheStorm
Could you display the code that actually stores the data, please?
0そうだね
プレイ済み
返信[6]
親投稿
Ep17 EmPx17
here.
0そうだね
プレイ済み
返信[7]
親投稿
Ep17 EmPx17
Is anybody there?
0そうだね
プレイ済み
返信[8]
親投稿
Gale Storm GaleTheStorm
Sorry, stuff came up. What I meant was could you show the code that precedes and follows line 111. The reason I ask is because if you see "Out of data" that can either means that there's not enough data for what is intended, or READ is called too many times than what is necessary.
0そうだね
プレイ済み
返信[9]
親投稿
Ep17 EmPx17
You mean like this? line 97 is 111 because i deleted some empty lines
0そうだね
プレイ済み
返信[10]
親投稿
Oscar PwnageBlock
I think you need to change the 19s on lines 95 and 97 to MAPH%-1 and MAPW%-1 respectively. This will limit the amount of READs done. So instead of... FOR FORY%=0 TO 19 FOR FORX%=0 TO 19 ...write this... FOR FORY%=0 TO MAPH%-1 FOR FORX%=0 TO MAPW%-1
0そうだね
プレイ済み
返信[11]
親投稿
Ep17 EmPx17
Ok.
0そうだね
プレイ済み
返信[12]
親投稿
Ep17 EmPx17
Ok i just now tried the stuff you guys told me and it worked but here's the problem, i made the array 7 line higher and it says subscript out of rage in 421 and program doesn't even have 420 lines O_o and i put MAPH%+7
0そうだね
プレイ済み
返信[13]
親投稿
Ep17 EmPx17
Nevermind, i think it works now i changed MAPH%+7 to MAP%+6 Thanks for your help.
1そうだね
プレイ済み