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

0 Members and 1 Guest are viewing this topic.

Offline captain1342

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 3
    • View Profile
    • Aperture-Hosting
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-Hosting Manager

Web: https://Aperture-Hosting.de
Mail: Webmaster@Aperture-Hosting.de
Github: https://github.com/captain1242
Discord: https://discord.gg/wxpbtYk
Teamspeak: ts3.Aperture-Hosting.de
Support: https://www.aperture-hosting.de/ticketsystem/
"Hosting with Vision"

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7610
  • Karma: 343
  • Sertafide Ulysses Jenius
    • View Profile
    • 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
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline captain1342

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 3
    • View Profile
    • Aperture-Hosting
Re: Function ulx.adduserid
« Reply #2 on: December 20, 2016, 06:26:53 AM »
I figured out a solution.

So Problem Solved
Aperture-Hosting Manager

Web: https://Aperture-Hosting.de
Mail: Webmaster@Aperture-Hosting.de
Github: https://github.com/captain1242
Discord: https://discord.gg/wxpbtYk
Teamspeak: ts3.Aperture-Hosting.de
Support: https://www.aperture-hosting.de/ticketsystem/
"Hosting with Vision"