Jump to content
Sign in to follow this  
Guest BoobCHUUB

MsgBox Help

Recommended Posts

Guest BoobCHUUB

Well I just want to ask something.

How do you tell what the button the user has pressed in a message box? I am using this script:

MsgBox(4,"Hello","Do you want to play a game?")

If MsgBox=6 Then

;Blah blah blah

EndIf

I know what bit is wrong, its the If MsgBox=6 bit. But I do not know how to fix it. Can anyone help me please? :ph34r:

Share this post


Link to post
Share on other sites
sykes

6 = Yes

7 = No

$answer = MsgBox(4,"Hello","Do you want to play a game?")
If $answer = 6 Then
;Blah blah blah
EndIf

We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.