Ulysses
General => Developers Corner => Topic started by: captain1342 on November 03, 2016, 04:47:33 PM
-
Heyo everyone some of you may know this Script to Make the Ranks run on MySQL: http://pastebin.com/BAi9YGre but it isnt working.. i try to fix it but well .. i just get an error message when i try to use ulx.adduserid()
Thats the Error:
lua_run ulx.adduserid(nil,'STEAM_0:0:65265978','owner')
> ulx.adduserid(nil,'STEAM_0:0:65265978','owner')...
[ULX] lua/ulx/log.lua:476: bad argument #2 to 'format' (number expected, got stri
ng)
1format - [C]:-1
2. unknown - lua/ulx/log.lua:476
3. gsub - [C]:-1
4. fancyLogAdmin - lua/ulx/log
.lua:450
5. adduserid - lua/ulx/modules/sh/user.lua:77
6. unknown - lua_run:1
Does someone of you know why?
-
You didn't post what "ulx version" was. Please do.
You're attempting to use a 3.5 year old script. Good luck.
However, that error currently has nothing to do with the old script.
I believe that our command objects set up some sanity checks, and also, your not passing your player object in the first parameter.
Try the same, but from console,
ulx adduserid "STEAM_0:0:65265978" owner
-
I figured out a solution.
So Problem Solved