General > Developers Corner
I don't understand why this isn't working...
MrPresident:
Because you're using Msg. This prints to the console. If run serverside, this will print to the server's console. The script doesn't know who the calling player is when printing to the console.
I bet if you use it in game, it prints to the server's console still.
Try using this function to print to the player who ran the command's console: http://wiki.garrysmod.com/page/Player/PrintMessage
Take a look at the HUD_Enums for how to get it to print to console instead of chat.
iViscosity:
No, I've used it in game and no output to server console. And I tried using PrintMessage before but I was using something different. Ill test in a bit.
MrPresident:
Was it in a ULX command that you used Msg? Maybe inside a concommand hook it'll call on the calling player, but it may not work the same inside a ULX command function. I don't actually know for sure.
Navigation
[0] Message Index
[*] Previous page
Go to full version