Ulysses Stuff > Releases

Custom ULX Commands / Server Mail

<< < (18/24) > >>

JamminR:
You can do it.
You have to escape them, but you just have to figure out how.
Google says for TF2 console you have to use double doublequotes ( "" )
In Gmod lua, you can use \", no idea if Gmod is same for console commands.
With Gmod, it could go either way, but I'd try "" first.
bind p "ulx tsaycolor ""message here red"" " (I've not studied this addon's command stucture, does red get included as part of the say string, or after, if after, place it after 'here')
Perhaps
bind p "ulx tsaycolor \"message here red\" "
And, even perhaps singlequotes.
bind p "ulx tsaycolor 'message here red' "

Officially:

--- Quote from: JamminR on January 02, 2016, 08:44:50 AM ---You can do it.
You have to escape them, but you just have to figure out how.
Google says for TF2 console you have to use double doublequotes ( "" )
In Gmod lua, you can use \", no idea if Gmod is same for console commands.
With Gmod, it could go either way, but I'd try "" first.
bind p "ulx tsaycolor ""message here red"" " (I've not studied this addon's command stucture, does red get included as part of the say string, or after, if after, place it after 'here')
Perhaps
bind p "ulx tsaycolor \"message here red\" "
And, even perhaps singlequotes.
bind p "ulx tsaycolor 'message here red' "

--- End quote ---
So far no joy with that either. I'd edit it in the config.cfg file, but it's not updating without closing Garry's Mods and my binds will reset once I quit. I'm attempting something quite far-fetched, but I thought that if I swap around a few of the lines in the code for the tsaycolor part of the addon, it could adjust the order so that the colour would go first, which would fix it. I'd be changing

--- Code: ---tsaycolor:addParam{ type=ULib.cmds.StringArg, hint="message" }
tsaycolor:addParam{ type=ULib.cmds.StringArg, hint="color", completes=ulx_tsay_color_table, ULib.cmds.restrictToCompletes } -- only allows values in that table
--- End code ---

--- Code: ---tsaycolor:addParam{ type=ULib.cmds.StringArg, hint="color", completes=ulx_tsay_color_table, ULib.cmds.restrictToCompletes } -- only allows values in that table
tsaycolor:addParam{ type=ULib.cmds.StringArg, hint="message" }
--- End code ---

Caustic Soda-Senpai:
Did you do it to the command's proper formatting? I noticed JamminR's was a bit off.

bind p "ulx tsaycolor 'message here' red"

JamminR:
Whis is why I mentioned not being sure of the command structure in my first example. :)

Officially:

--- Quote from: Caustic Soda-Senpai on January 04, 2016, 05:49:18 AM ---Did you do it to the command's proper formatting? I noticed JamminR's was a bit off.

bind p "ulx tsaycolor 'message here' red"

--- End quote ---
I tried that, but still no joy. It's no huge loss, so I'll just have to live without it.  :-[

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version