Author Topic: Can't use console in own dedicated server.  (Read 307 times)

Title pretty much says it all. I am the owner/host of the dedicated but a get and error:
Code: [Select]
==>findclientbyname("Erythros").player.mountimage("SwissArmyGun_Image, 0");
<input> (0): Unable to find function findclientbyname

<input> (0): Unable to find object: '' attempting to call function 'mountImage'
BackTrace: ->ConsoleEntry::eval

Any help would be appreciated. And what is eval? I see references to it a lot and it bugs me.

You're using the wrong console.

I enter this into the console and nothing happens.
Code: [Select]
findclientbyname("Ery").player.mountimage("SwissArmyGun_Image, 0");


So I entered this into the console to re-load the Swiss Army Gun.
Code: [Select]
exec("add-ons/tool_swissarmygun/server.cs");
and I get an error saying the file doesn't exist.

eh... i just restarted server.