General > Developers Corner

Help With Command

<< < (4/6) > >>

Livaco:
last thing, how do I make a string? a error said that it expected a string instead of a table on line 17

Aaron113:
What's the line of code it's talking about?  The problem is you're simply giving something a table instead of a string by the sounds of it.  Most likely just something got mixed up.

Livaco:
if u need the error code its

--- Code: ---[ERROR] bad argument #1 to ULib.cmds.TranslateCommand:defaultAccess (string expected, got table)
  1. error - [C]:-1
   2. checkArg - addons/ulib/lua/ulib/shared/misc.lua:520
    3. defaultAccess - addons/ulib/lua/ulib/shared/commands.lua:1218
     4. unknown - addons/ulx/lua/ulx/modules/sh/livaco.lua:17
      5. include - [C]:-1
       6. unknown - addons/ulx/lua/ulx/cl_init.lua:17
        7. include - [C]:-1
         8. unknown - addons/ulx/lua/ulib/modules/ulx_init.lua:4
          9. include - [C]:-1
           10. unknown - addons/ulib/lua/ulib/cl_init.lua:23
            11. include - [C]:-1
             12. unknown - addons/ulib/lua/autorun/ulib_init.lua:5
--- End code ---

Zmaster:
Aaron asked for the line of code not the error, show us the line it's talking about

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version