Ulysses

General => Developers Corner => Topic started by: tzahush on March 14, 2014, 02:14:52 PM

Title: editing the ulx
Post by: tzahush on March 14, 2014, 02:14:52 PM
hey guys im trying to add a small ulx command.
This is the function's name.
function ulx.faction(calling_ply, faction)

This is the end of it:
faction:addParam{ type=ULib.cmds.StringArg, hint="name of the faction", ULib.cmds.takeRestOfLine }

For some reason When i use ulx faction 'name', my error says that the parameter faction hasns't been defined yet, although as i understood by look at examples, it should get defined already, just when i use the command, for example: ulx faction hello.
A few other questions:
1.Can I ristrict tools to only steamid's? and not usergroups?
2.Can i create a table in the ulx plugin and customise it as my own? meaning i'll use it and it wont inherit from the players who are online?
Title: Re: editing the ulx
Post by: tzahush on March 15, 2014, 01:13:47 PM
Bump
Title: Re: editing the ulx
Post by: tzahush on March 16, 2014, 07:26:18 AM
bump, please need help.
Title: Re: editing the ulx
Post by: Eccid on March 16, 2014, 08:02:13 AM
We can't help much with so little information, if you can post your code, we can test it and make changes.
Title: Re: editing the ulx
Post by: MrPresident on March 16, 2014, 09:45:45 AM
Also, don't bump your thread. There's no point. We all see it. Unless it somehow finds its way off the first page of threads, there is no need to bump it twice a day.