Ulysses

General => Off-Topic => Topic started by: BunnyTM on December 23, 2013, 02:41:28 PM

Title: Lua Errors and targeting
Post by: BunnyTM 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?
Title: Re: Lua Errors and targeting
Post by: Megiddo 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?
Title: Re: Lua Errors and targeting
Post by: BunnyTM 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?
Title: Re: Lua Errors and targeting
Post by: JamminR 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 (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.