15-01-2008, 05:23 PM
Castle IS the condition.
X = 1 is the CONDITION. So... Now that you know that, your condition is when the radio button's caption is "Castle" right?
Note how I nested it for you.
That's how it should look like.
Code:
If x = 1 Then
X = 1 is the CONDITION. So... Now that you know that, your condition is when the radio button's caption is "Castle" right?
Code:
Private Sub Command1_Click()
If selectwarp.Text = "Castle" Then
Call PlayerWarp(MyIndex, 2, 2, 2)
Else
Call AddText("Cannot warp at the moment", BrightRed)
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Note how I nested it for you.
That's how it should look like.