Author Topic: Lua Errors and targeting  (Read 2087 times)

0 Members and 4 Guests are viewing this topic.

Offline BunnyTM

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Lua Errors and targeting
« on: December 23, 2013, 02:41:28 PM »
im getting an error saying "gamemodes/darkrp/gamemode/share.lua:115: ')' expected (to close '(' at line 106) near '='

also, when I want to make it so that the admins cant pick up supers, and moderators cant pick up admins, what should I do? i tried using only can target but admins cant target mods then. how do you make it so admins can only touch moderators and users?
« Last Edit: December 23, 2013, 02:51:40 PM by BunnyTM »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Lua Errors and targeting
« Reply #1 on: December 24, 2013, 05:33:34 AM »
Those line numbers aren't matching up.

For targeting, what you're asking is the default configuration. How do you have it configured now?
Experiencing God's grace one day at a time.

Offline BunnyTM

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Lua Errors and targeting
« Reply #2 on: December 24, 2013, 08:24:01 AM »
What do you mean by that? i just need it so that the admins cant target supers but they can target moderators and users isnt there like a ulx command for that?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lua Errors and targeting
« Reply #3 on: December 24, 2013, 11:30:57 AM »
isnt there like a ulx command for that?
Not a command per se.
From console as superadmin,  the first paragraph of  "ulx help" and some of "ulx usermanagementhelp" give description of how to use the can target field.
There's also this great FAQ - http://forums.ulyssesmod.net/index.php/topic,5346.0.html
The can target field also exists  in XGUI.
That FAQ should give you the idea how to use the field, which by default, ULX won't allow users to target operators to target admins to target superadmins.
« Last Edit: December 24, 2013, 11:32:32 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming