プレイ日記
TFlan nuynuf
Ugh... I'm confused. I run my program, and let's say I choose 4, b/c I want to run (That part doesn't matter. It happens with all choices), then I get an error message that says "Type mismatch in line 5" I've been trying to solve this for two weeks (Got the Banhammer), do you guys know what I did wrong here?
0そうだね
プレイ済み
返信[1]
親投稿
Nicky G.M. cooltyler1234
to fix it, delete line 6 and join it with line 5, you entered a new line of code, you started on line 5, but then went onto line 6
0そうだね
プレイ済み
返信[2]
親投稿
mystman12 mystman12
@Nicky No, that's wrong. The multi-line IF statement is correct. The problem is that you are comparing a numerical variable with a string. Simply remove the quotes around the 4 and you should be good to go! The error (Type mismatch) is saying the types don't match. Also, if the CHC variable is supposed to be a string, remember to always add "$" to the end of the name of the variable.
1そうだね
プレイ済み
返信[3]
親投稿
TFlan nuynuf
Thank you SO much! But, I have another problem... If I run the program, and choose a number, it brings me to the message you get for not typing in an option. I've tried changing the options to letters, and that just did the same thing. Should I change the IFs to WHENs or is something else the problem?
0そうだね
プレイ済み
返信[4]
親投稿
TFlan nuynuf
Screenshot 1
0そうだね
プレイ済み
返信[5]
親投稿
TFlan nuynuf
Screenshot 2, if this one helps at all
0そうだね
プレイ済み
返信[6]
親投稿
mystman12 mystman12
I think all you need to do is change the ";" in line 4 to a comma.
0そうだね
プレイ済み
返信[7]
親投稿
TFlan nuynuf
Hmm, I'll try it.
0そうだね
プレイ済み
返信[8]
親投稿
TFlan nuynuf
*X-Files theme starts playing*
1そうだね
プレイ済み