function meta:fgeneric(text)
self:SendLua("GAMEMODE:AddNotify('Blah Blah in notify', NOTIFY_GENERIC, 5) surface.PlaySound( '/buttons/button24.wav' ) Msg('Blah Blah in console[B]\n[/B]') ")
end
ERROR: [ERROR] LuaCmd:1: unfinished string near ''Blah Blah in console'
1. unknown - LuaCmd:0
How to send lua-transfer?
You should use .net or usermessages.
SendLua has a limit of 255 bytes, 255 chars.
Also: [url]http://www.facepunch.com/showthread.php?t=1160598&p=38556502[/url]
You need to escape the escape string. Use \\n
Or you could use MsgN which removes the need for \n.
Sorry, you need to Log In to post a reply to this thread.