creatorfromhell Posted May 27, 2011 Author Share Posted May 27, 2011 Hello, I wanted to add membership to my game after it gets alot better. So I wanted to make an access level for it. So far I've added the access level for membership as 2 and moved the rest up (moderator/monitor-3, mapper-4, developer-5, creator-5). Alls I wanted to know is what else would I have to change so that members do not have the same rights as moderators/monitors. Link to comment Share on other sites More sharing options...
Repercussionist Posted May 27, 2011 Share Posted May 27, 2011 If you did it properly, then as long as members is below Admin_Monitor, they won't have access to anything because all of the access checks use those constants and rule out access from the bottom up.But from what you posted, something's fishy. Your new constants should be as listed below, unless there's something else you've added under monitor.```' Admin constantsPublic Const MEMBERS As Byte = 1Public Const ADMIN_MONITOR As Byte = 2Public Const ADMIN_MAPPER As Byte = 3Public Const ADMIN_DEVELOPER As Byte = 4Public Const ADMIN_CREATOR As Byte = 5```Regular players who are not assigned access are 0 by default. Link to comment Share on other sites More sharing options...
creatorfromhell Posted May 27, 2011 Author Share Posted May 27, 2011 I did it like this:>! ' Admin constantsPublic Const Player_MEMBER As Byte = 1Public Const ADMIN_MODERATOR As Byte = 2 (Changed monitor to this did everything that said monitor in the source as well)Public Const ADMIN_MAPPER As Byte = 3Public Const ADMIN_DEVELOPER As Byte = 4Public Const ADMIN_CREATOR As Byte = 5 Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 28, 2011 Share Posted May 28, 2011 remember to set off the comments with a ' this also applies for commets in the same line as fuctional codePublic Const ADMIN_MODERATOR As Byte = 2 'Changed monitor to this did everything that said monitor in the source as well Link to comment Share on other sites More sharing options...
Repercussionist Posted May 28, 2011 Share Posted May 28, 2011 I'm pretty sure that was just a note to us… Link to comment Share on other sites More sharing options...
creatorfromhell Posted May 28, 2011 Author Share Posted May 28, 2011 yea that was just a note Link to comment Share on other sites More sharing options...
RyokuHasu Posted May 31, 2011 Share Posted May 31, 2011 lol sorry XD my mistake then… carry on... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now