msg1 = "test"
addhook("say","msg")
function msg(id,txt)
if txt == "!test" then
msg(@Cmsg1) --> Fail.
msg("@C" ..msg1) --> again fail.
How can i fix it ?
msg("This text is displayed at the center@C")
addhook("say","centertext") function centertext(id,t) 	msg(""..t.."@C") -- I forgot how to concatenate here >.< end
local text_copied = t local empty_string = '' local at_sign = '@' local C_letter = 'C' msg([[]]..empty_string..[[]]..t..[[]]..at_sign..[[]]..C_letter..[[]])
msg("Test@C")
if sample==nil then sample={} end sample.sayfuncs={} --------------------- -- Sample Function -- ---------------------- addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(p,txt) if (txt== "!test") then msg("Test@C") return 1 end end
if sample==nil then sample={} end sample.sayfuncs={} --------------------- -- Sample Function -- ---------------------- addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(p,txt) if (txt== "!test") then msg("©000255000Test@C") return 1 end end -- The Msg is green! --
msg("Test@C")