ULX

Author Topic: ULib.ucl:query  (Read 2551 times)

0 Members and 1 Guest are viewing this topic.

Offline fackelkind

  • Newbie
  • *
  • Posts: 24
  • Karma: 4
ULib.ucl:query
« on: September 12, 2006, 12:18:00 PM »
Hey there

ULib.ucl:query (userid, "a")


gives me LUA errors:

[LUA] Error calling 'onPlayerRemove' : 'Line 597: attempt to index field 'authed
' (a nil value)'

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULib.ucl:query
« Reply #1 on: September 12, 2006, 12:26:27 PM »
ULib.ucl is the "class", speaking in C++ terms, not the instance. You need to use ULib.mainUcl:query()
Experiencing God's grace one day at a time.

Offline fackelkind

  • Newbie
  • *
  • Posts: 24
  • Karma: 4
Re: ULib.ucl:query
« Reply #2 on: September 12, 2006, 12:34:21 PM »
Ohh, my bad, thanks meddigo. Ill try that (as you can see I'm doin more and more with ULib :D)