Ulysses Stuff > General Chat & Help and Support

admin sweps = ulx_concommand

(1/3) > >>

Locou:
I used the Tutorial with ULX_CONCOMMAND but it still not work.

I've open the swep_menu.lua and relpaced

--- Code: ---CONCOMMAND( "SWEPSpawn", cc_SpawnSWEP, "Spawn SWEP weapon; Syntax: <filename>");
--- End code ---
with

--- Code: ---ULX_CONCOMMAND( "SWEPSpawn", cc_SpawnSWEP, "Spawn SWEP weapon; Syntax: <filename>", ACCESS_IMMUNITY);
--- End code ---
but if I try to Spawn a SWEP in SP or MP it don't work.

--- Code: ---unknown command: SWEPSpawn
--- End code ---

Somthing i did wrong? Help? :-\

Megiddo:
You want ULib.CONCOMMAND now... that reminds me, I forgot to put ULX_CONCOMMAND in compat.lua. Silly me.

What tutorial did you get this information from? Can you link me to it so I can change it?

Locou:
I've used this one:
http://forums.facepunchstudios.com/showthread.php?t=121765

Edit:
But now i have the same problem as above.

--- Code: ---Unknown command: SWEPSpawn
--- End code ---


--- Code: ---ULib.CONCOMMAND( "SWEPSpawn", cc_SpawnSWEP, "Spawn SWEP weapon; Syntax: <filename>", ACCESS_IMMUNITY);
--- End code ---

JamminR:
Try
"ulx SWEPSpawn" (no quotes)??
I think that is what ULib.CONCOMMAND does.

Megiddo will correct me soon if I'm wrong.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version