プレイ日記
Scientist Speedy1101
How do you make a function in one file return an array to another program in a different file?
3そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Try putting your array name after the DEF statement's OUT, like this: DEF x OUT y[] or DEF x OUT y$[]
0そうだね
プレイ済み
返信[2]
親投稿
Alex MrCashews
you would do USE "PRG1:FILE", and then calls to LOAD_LVLS work in any slot
0そうだね
プレイ済み
返信[3]
親投稿
Scientist Speedy1101
Okay.
0そうだね
プレイ済み
返信[4]
親投稿
Scientist Speedy1101
It says duplicate variable in 1:2 even though the only similarities between the two are the fact that they are string arrays.
0そうだね
プレイ済み
返信[5]
親投稿
Scientist Speedy1101
I changed MAPS$ to MP$ in the function shown in the first screenshot.
0そうだね
プレイ済み
返信[6]
親投稿
OlOOlOOl pi_r_round
Sorry, I thought I previously had this working, but trying this morning, I can't get it to work. Hmm... maybe I was thinking about a different programming language. Anyway, I did come up with a sort of work-around. If you want to have a look at it, the key is in the screenshot.
1そうだね
プレイ済み
返信[7]
親投稿
Scientist Speedy1101
Thanks!
0そうだね
プレイ済み