its notbind ''n'' ''/say Hello!''itsbind n "say Hello!"
Quote from: Jordan589 on August 12, 2011, 03:17:05 PMits notbind ''n'' ''/say Hello!''itsbind n "say Hello!"Pretty sure it's bind n say "Hello!" without the "say" in ""
Quote from: Jordan589 on August 12, 2011, 03:17:05 PMits notbind ''n'' ''/say Hello!''itsbind n "say Hello!"Doesn't matter.<command> <string> <string2>
bind n "say Hello!"
say "Hello, this is an example of how to use these characters to combine this load of text in just one string."
bind n "say Hello!; say My name is Nick.; say And my special talent is coding."
Quote from: Martiner on August 12, 2011, 03:27:37 PMQuote from: Jordan589 on August 12, 2011, 03:17:05 PMits notbind ''n'' ''/say Hello!''itsbind n "say Hello!"Doesn't matter.<command> <string> <string2>Yes it does matter. All that "" does is making everything between it as 1 string. If you leave them away, it would take "say" and "Hello!" as a seperate string as a spacebar breaks strings apart.The command you use in console to chat is: say Hello! put it as one string by adding "" -> "say Hello!"Now all you have to do is binding that string to a button using the command "bind <button> <string>"So the correct way of binding everything is this:Code: [Select]bind n "say Hello!"Now you have that working. Say if you want to say multiple lines, or do multiple things with only one bind, you can use ; within a string to separate it as well. Here is a good example:Important note: Don't use a space between the string and ; or else it would take the space within the string, hence not work.[/color]Code: [Select]bind n "say Hello!; say My name is Nick.; say And my special talent is coding."
bind n "say Hello!";"say My name is Nick.";"say And my special talent is not LUA coding."
I love how you tried to be a smart ass on me.I mean the <key> can also be used as a string.It doesn't matter if you make <key> as a string or not.It does not require to have quotes because it is not two or more words, it is only one: nFunny thing is, Code: [Select]bind n "say Hello!; say My name is Nick.; say And my special talent is coding."That will not work because of two reasons. It should be.Code: [Select]bind n "say Hello!";"say My name is Nick.";"say And my special talent is not LUA coding."And source will not allow the same commands to be seperated, due to fair reasons and spam.
[code]bind n "say Hello!";"say My name is Nick.";"say And my special talent is not LUA coding."
Quote from: Martiner on August 13, 2011, 12:58:24 PMI love how you tried to be a smart ass on me.I mean the <key> can also be used as a string.It doesn't matter if you make <key> as a string or not.It does not require to have quotes because it is not two or more words, it is only one: nFunny thing is, Code: [Select]bind n "say Hello!; say My name is Nick.; say And my special talent is coding."That will not work because of two reasons. It should be.Code: [Select]bind n "say Hello!";"say My name is Nick.";"say And my special talent is not LUA coding."And source will not allow the same commands to be seperated, due to fair reasons and spam.Why do you think I'm trying to be a smart ass? Someone requires help here, and I'm more liking to help him understanding console commands which you can see as little pieces of coding.Try it.
bind "n"orbind n