Ulysses
General => Developers Corner => Topic started by: Sproncker on November 15, 2013, 04:00:17 PM
-
(http://i.imgur.com/iDL4w1e.png)
took me a while to pinpoint adduserid being the error, and it's throwing this error of which I cannot seem to solve, it only seems to like the usergroup as a number, where it's saved in my database as a string, likewise with the steamID
this error
(http://i.imgur.com/FiiBo46.png) is thrown
which leads to
(http://i.imgur.com/gUr6bcv.png)
and I can't really make any sense of what's going on anywhere in the log file.
Any assistance would be greatly appreciated.
-
There are two issues here.
First, you really shouldn't be calling ulx.adduserid for your use case (I understand this works for a lot of people for their needs, but it was not something I designed around); instead, call ULib.ucl.addUser (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser). Or if you really want to keep using the ULX command, call it from console using RunConsoleCommand (http://wiki.garrysmod.com/page/Global/RunConsoleCommand).
Second, which directly addresses your problem, you're passing nil to calling_ply which would never be nil under normal circumstances (the server console is simply an invalid entity). I haven't actually verified this is the issue, but I'm fairly confident it is.