Author Topic: Function ulx.adduserid  (Read 1608 times)

0 Members and 1 Guest are viewing this topic.

Offline captain1342

  • Full Member
  • ***
  • Posts: 104
  • Karma: 6
  • Quality is our standard
    • Aperture Development - Quality is our standard
Function ulx.adduserid
« 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?
Aperture Development
Quality is our standard

Website - GitHub  - Forum  - Steam  - Discord

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Function ulx.adduserid
« Reply #1 on: November 03, 2016, 08:36:49 PM »
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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline captain1342

  • Full Member
  • ***
  • Posts: 104
  • Karma: 6
  • Quality is our standard
    • Aperture Development - Quality is our standard
Re: Function ulx.adduserid
« Reply #2 on: December 20, 2016, 06:26:53 AM »
I figured out a solution.

So Problem Solved
Aperture Development
Quality is our standard

Website - GitHub  - Forum  - Steam  - Discord