Jump to content

#RequireAdmin problem


autoking
 Share

Recommended Posts

Hi. Is it not possible to use #requireadmin this way?:

If IsAdmin() Then
#RequireAdmin
;some stuff
Else
EndIf

If Not IsAdmin() Then
;some stuff
Else
EndIf

If i'm logged in as a standard user, it will still prompt for admin rights. I guess I'm doing it right, but that #RequireAdmin doesen't support to be used with a if - then.

Some way to do it :)?

Link to comment
Share on other sites

  • Moderators

No, #RequireAdmin is a computer directive, and will be processed regardless. If you take the time to do a forum search, you can read through the dozens of times this has been asked and answered.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...