![]() 2 + "some string") Attempt to index global 'varname' (a nil value)ĭescription: You tried to index an undefined variable (e.g. Make sure you define local variables before calling them in the codeĪttempt to perform arithmetic on '?' (a type value)ĭescription: You tried to perform arithmetic (+, -, *, /) on a variable that cannot perform arithmetic.You've misspelled the name of the global variable.You tried to use a local variable that was defined later in the code.Check your function calls for spelling errorsĪttempt to perform arithmetic on global '?' (a nil value)ĭescription: You tried to perform arithmetic (+, -, *, /) on a global variable that is not defined.Make sure your function is defined in the correct realm.You've misspelled the name of the function.The function you're calling has an error in it which means it is not defined.You're using a metafunction on the wrong kind of object.(e.g Calling a function on the client that only exists on the * server.) Your function might be defined in another Lua state.If it's not, it will print your message and halt just like error does.Ĭommon Errors Attempt to call global '?' a nil valueĭescription: You tried to call a function that doesn't exist. assert will check to make sure that something is true.ErrorNoHalt will print the file/line number and your message without halting the script.error will print your message, halt execution, and print the stack.If you want to print your own error messages, there are three functions to do it: Messages which look like errors but are colored differently, such as red or white, are not Lua errors but rather engine errors. If it's menu code, it will be green (not a typical scenario). If it happened clientside, it will be yellow. If the error happens serverside, the text color will be blue. Simplified - If the error is inside a function/chunk of code that is called from somewhere else, it will state where the code is called from. Lastly, the error itself - attempt to call global 'Print' (a nil value)īelow the error, we have the trace of the function. The first line includes the path to the file that is causing the error - addons/my_addon/lua/autorun/server/sv_my_addon_aĪfterwards, the line that's producing the error - sv_my_addon_a:2 (Line 2) That is because Print is not an existing function ( print, however, does exist). unknown - addons/my_addon/lua/autorun/server/sv_my_addon_a:2 lua:2: attempt to call global 'Print' (a nil value)ġ. ![]() See the CHANGELOG file for information regarding changes between releases.Addons/my_addon/lua/autorun/server/sv_my_addon_autorun. Brett "Megiddo" Smith - Contact: JamminR - Contact: Stickly Man! - Contact: MrPresident - Contact: big thanks to JamminR for listening to the rest of the team (especially Megiddo) ramble on, never giving up on us, and for giving the project fresh insights.Type ulx help in a console without the quotes for help.Ĭheck out the config folder in ulx for some more goodies. Superadmins also have the power to give and revoke access to commands using userallow and userdeny.Īll commands are preceded by ulx. They have access to all the commands in ULX, the ability to override other user's immunity, and are shown log messages which are hidden from other players (EG, they are shown rcon commands admins are running). If you absolutely need to, you can also edit the data/lib/users.txt file.Ī word about superadmins: Superadmins are considered the highest usergroup. You can also use the ulx adduser (user) (group) command. Then use the "Add" button to add connected players. To add users to usergroups, navigate to the "Groups" tab of the GUI and select a group. Additionally, you can use console commands in the form of ulx (command) (arguments) or chat commands in the form of !(command) (arguments). It is recommended to bind this command to a keyboard key. To access the commands and settings in ULX, you can open the GUI with ulx menu in console. To give yourself a jump start into ULX, simply remember the commands ulx help and ulx menu. ![]() A simple map change will not cut it! Usage You absolutely, positively have to do a full server restart after installing the files. (garrysmod)/addons/ulx/lua/ulx/modules/fun.lua (garrysmod)/addons/ulx/lua/ulib/modules/ulx_a When you've done this, you should have a file structure like this: To install ULX, simply extract the files from the downloaded archive to your garrysmod/addons/ folder. You can subscribe to ULX via Workshop here.ĭon't forget you'll also need ULib, whose workshop ID is 557962238 and can be found here. ULX requires the latest version of ULib to be installed on the server. It features commands from basic kick, ban, and slay to fancier commands such as blind, freeze, voting, and more. It allows multiple admins with different access levels on the same server. ULX offers server admins an AMXX-style support.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |