Mirage Source
Admin Panel [Its All Good] - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Admin Panel [Its All Good] (/showthread.php?tid=1647)



Admin Panel [Its All Good] - Ravuya - 30-03-2008

Can someone give me a code so that in frmMirage when a admin presses F1 a admin panel will open.
I can can code and design the panel from there


Re: Admin Panel - seraphelic - 30-03-2008

Make the admin panel a form named frmAdmin.

Then add use this into frmMirage code:
Code:
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyF1 Then
        If Player(MyIndex).Access > 0 Then
            frmAdmin.Visible = True
        End If
    End If
End Sub



Re: Admin Panel - Ravuya - 30-03-2008

Dosnt Work Highlights first line and says

Compile Error:
Ambiguous name detected:Form_KeyUp


Re: Admin Panel [Its All Good] - Ravuya - 30-03-2008

Its All Good Thanks For The Help