Switch to full style
Discussions and questions about the CS and mods for Oblivion
Post a reply

Please help to create a multi-menu MessageBox

Mon Aug 21, 2023 8:04 pm

Re: Please help to create a multi-menu MessageBox

Sat Aug 26, 2023 6:51 pm

I've been a VB6 programmer for about 35 years. This isn't that language, but the structure and function of If, ElseIf, EndIf is pretty universal. I think your problem may be pretty simple.

Your first If block in MenuMode checks to see if Choosing = 1. If it does, it sets Choosing = 2 and Choice = -1. So far, so good.

But then you use ElseIf. The problem is that after the program executes the If block, it skips over the ElseIf to the EndIf.

Replace

ElseIf ( Choosing == 2 )

with the following:

EndIf

If (Choosing == 2)

Hope that helps.

Re: Please help to create a multi-menu MessageBox

Sun Aug 27, 2023 10:58 pm

Post a reply