General > Developers Corner
Help With Command
Zmaster:
ULib.ACCESS_ADMIN is a string, however you have it inside of a table, which is why you're getting an error
If you had looked at any other command that comes with ULX you would see parenthesizes rather than the table-squiggly things
Change your line to look like this: ban:defaultAccess( ULib.ACCESS_ADMIN )
Edit:
Looks like you changed it at some point because last time you posted your code that line was correct, but at some point you changed it to a table
Livaco:
I switched back to the old one becuse it wasent popping up and I wil try it tomorrow thx
Livaco:
Its Still The Same This Time No Error Though. But When I Run The Command One Error Appears
--- Code: ---[ERROR] addons/ulx/lua/ulx/xgui/commands.lua:168: attempt to index field 'type' (a nil value)
1. obj - addons/ulx/lua/ulx/xgui/commands.lua:168
2. func - addons/ulx/lua/ulx/modules/cl/xlib.lua:1080
3. animQueue_call - addons/ulx/lua/ulx/modules/cl/xlib.lua:1061
4. func - addons/ulx/lua/ulx/modules/cl/xlib.lua:1080
5. animQueue_call - addons/ulx/lua/ulx/modules/cl/xlib.lua:1061
6. animQueue_start - addons/ulx/lua/ulx/modules/cl/xlib.lua:1048
7. setselected - addons/ulx/lua/ulx/xgui/commands.lua:85
8. OnRowSelected - addons/ulx/lua/ulx/xgui/commands.lua:305
9. OnClickLine - lua/vgui/dlistview.lua:497
10. unknown - lua/vgui/dlistview_line.lua:93
--- End code ---
It Only Appears When I Try The Command Not Anay Other Time
Caustic Soda-Senpai:
Post your CURRENT code please
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version