• Write to server console
    4 replies, posted
Hello, I've been googling about this and looking in other codes. I've tried MsgN() but it doesn't write to the server console. My server is hosted with a company, is this listen server? How do I write to the servers console? [editline]8th September 2013[/editline] And I also wonder how do I use MsgN() with color? I use this to send to the online admins consoles, but it doesn't put in the logs so I can go back and check what happened.
A message output to console which works client/server-side using color is MsgC( Color, string ) [url]http://wiki.garrysmod.com/page/Global/MsgC[/url]
You can write to servers console using any of printing functions: print("test") Msg("test") MsgN("test") MsgC("test") MsgAll("test") [B]Just make sure to call these functions from SERVER side.[/B]
[QUOTE=Acecool;42122864]A message output to console which works client/server-side using color is MsgC( Color, string ) [url]http://wiki.garrysmod.com/page/Global/MsgC[/url][/QUOTE] Thank you, it doesn't seem to print to the admins consoles in color, but it prints to the server console atleast.
[QUOTE=Busan1;42123432]Thank you, it doesn't seem to print to the admins consoles in color, but it prints to the server console atleast.[/QUOTE] It is not supposed to. You'll have to use net library or some other means to achieve that.
Sorry, you need to Log In to post a reply to this thread.