Ulysses Stuff > Ulysses Release Archives
ULX Give - Give weapons to players.
JamminR:
Welcome.
Syntax - a coder's worst nightmare
Goldsun1715:
Uh... so I've got the string right here:
local give = ulx.command( CATEGORY_NAME, "ulx give", ulx.give, "!give" )
What exactly am I supposed to set CATEGORY_NAME to?
JamminR:
Look at "ulx help" from console...it's categorized, I forget them off the top of my head, but it's like "Utility", "Player management", "punishment"... some like that.
Change CATEGORY_NAME to the "<category>" you want from the help menu. Enclose the name in quotes.
Goldsun1715:
--- Quote from: JamminR on May 02, 2010, 08:42:49 PM ---Look at "ulx help" from console...it's categorized, I forget them off the top of my head, but it's like "Utility", "Player management", "punishment"... some like that.
Change CATEGORY_NAME to the "<category>" you want from the help menu. Enclose the name in quotes.
--- End quote ---
Oh thank you very much. :)
xynetor:
I don't know anything about LUA coding but this is the error I get.
--- Code: ---ulx\modules/givesvn.lua:23: bad argument #1 to 'ipairs' (table expected, got nil)
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version