| Issue 6: | When I try to do anything, it doesn't work. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Opening the Evolve menu 2. Typing 'ev god' in the console (god can e any other command) 3. Using a chat command What is the expected output? What do you see instead? I expect it to let me use the commands and set my rank to owner. Instead I get a whole bunch of errors filling up my screen. What version of the product are you using? On what operating system? 1.0 Beta which is the latest version so far. My OS is fine. Please provide any additional information below. It's spams this error when I try and do something: ev_framework.lua:335: attempt to index field ‘?’ (a nil value) ev_menu/tab_a_players.lua:154: attempt to index field ‘?’ (a nil value) And I found what is irritating it inside the framework. It's the ranks. unction _R.Player:EV_IsRespected() return self:GetNWString( "EV_UserGroup" ) == "respected" or self:EV_IsAdmin() end function _R.Player:EV_IsAdmin() return self:GetNWString( "EV_UserGroup" ) == "admin" or self:IsAdmin() or self:EV_IsSuperAdmin() end function _R.Player:EV_IsSuperAdmin() return self:GetNWString( "EV_UserGroup" ) == "superadmin" or self:IsSuperAdmin() or self:EV_IsOwner() end function _R.Player:EV_IsOwner() if ( SERVER ) then return self:GetNWString( "EV_UserGroup" ) == "owner" or self:IsListenServerHost() else return self:GetNWString( "EV_UserGroup" ) == "owner" end end function _R.Player:EV_IsRank( rank ) return self:GetNWString( "EV_UserGroup" ) == rank end
Feb 17, 2010
#1
dylanm...@aim.com
Feb 17, 2010
Could you check what the value of self:GetNWString( "EV_UserGroup" ) is by adding this above the return line? print( self:GetNWString( "EV_UserGroup" ) )
Feb 17, 2010
So like this? print( self:GetNWString( "EV_UserGroup" ) ) return self:GetNWString( "EV_UserGroup" ) == "owner" or table.HasValue( evolve.ranks[ self:GetNWString( "EV_UserGroup" ) ].Privileges, priv ) (I added the line above it like you said and was wondering if I did it correctly.)
Feb 17, 2010
Also what should I do about the tab_a_players.lua? When I open the GUI menu it spams an error about the menu. ev_menu/tab_a_players.lua:154: attempt to index field ‘?’ (a nil value). If you want I could find the exact line that is causing it. I should also probably mention that when I open the GUI menu, my name doesn't show up. Only my SteamID and I can't use any commands. My name doesn't show up on the TAB menu either, but it says 1 player is playing. Anyways, after I add the print line above the return line, what do I do?
Feb 17, 2010
I tried setting my rank in the console and it says I'm ranked as guest and says this in console [EV] ($>) ZOmBine -> You are not allowed to do that. when I try to become Owner. If you can help in any way, please do so.
Feb 18, 2010
I found out what the problem is. In the next revision you will be owner again automatically when hosting a listen server (like you are doing).
Feb 23, 2010
(No comment was entered for this change.)
Status:
Verified
|