プレイ日記
Scientist Speedy1101
It says type mismatch in line 14. How do I fix it?
3そうだね
プレイ済み
返信[1]
親投稿
crazy pro Jakob13009
delete ''then'' or add something to it
0そうだね
プレイ済み
返信[2]
親投稿
Scientist Speedy1101
Which "THEN"{
0そうだね
プレイ済み
返信[3]
親投稿
crazy pro Jakob13009
the ''then'' code in line:14
0そうだね
プレイ済み
返信[4]
親投稿
If I'm not mistaken, remove the "COMMON " from line 11.
0そうだね
プレイ済み
返信[5]
親投稿
*J.P.* DEV NEWPICY3
the then has an endif so its not the problem
0そうだね
プレイ済み
返信[6]
親投稿
*J.P.* DEV NEWPICY3
also common isn't it either I don't think.. would it not be IF STARX%[I]<0 not <=0 or is that just me..?
0そうだね
プレイ済み
返信[7]
親投稿
Autz sonic-HD8765
I think the RNDX function is making something weird. Have you tested that function alone?
0そうだね
プレイ済み
返信[8]
親投稿
Guy brilliance360
So I thought I might try building up my own thing that closely resembles your setup, testing the limits of some of the functions, thinking that I'd stumble across an answer, but I never encountered a problem. So then I tried just copying what you have word for word, and I still don't get a problem. No type mismatch. No error.
0そうだね
プレイ済み
返信[9]
親投稿
Guy brilliance360
The only thing worth mentioning is that I assume you have word wrap turned off, so I assumed that line 8 ends as (400-STARX%[I]).
0そうだね
プレイ済み
返信[10]
親投稿
Scientist Speedy1101
Here's the cleaned up code. I've tried it in a nearly empty program witn only the code required to use the function. It still says "type mismatch".
0そうだね
プレイ済み
返信[11]
親投稿
Autz sonic-HD8765
Well, i tried the code and runs without issue. I suspect you're using for what should not be used to.
0そうだね
プレイ済み
返信[12]
親投稿
Scientist Speedy1101
I'm trying to use it as a start to an external library so I can just call the function in future programs.
0そうだね
プレイ済み
返信[13]
親投稿
Autz sonic-HD8765
I mean the way you call it. On the original you parsed a parameter on the function and maybe you're doing it wrong in that sense. I can't really tell.
0そうだね
プレイ済み