Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Logout Function..


Soljah
 Share

Recommended Posts

Is it possible to have a logout function that unloads frmMirage and reloads frmMainMenu, while actually making your character Logout from the server….?

I've tried several codes, such as the following -

```
Private Sub LogOut_Click()
    frmMainMenu.Show
Unload Me
End Sub
```
```
Private Sub LogOut_Click()
    frmMainMenu.Show
Call GameDestroy
End Sub
```
The first 2 do not load frmMainMenu, and instead just exit the game completely.

```
Private Sub LogOut_Click()
    frmMainMenu.Show
    frmMirage.Hide
End Sub
```
The last one Shuts the frmMirage, and Shows the frmMainMenu, however does not log the character from the server.

And help would be greatly appreciated.

EDIT: Is there a function that If frmMirage is not visible, the character auto-logs out from the server?
Link to comment
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
 Share

×
×
  • Create New...