I basically want to execute whatever is in script.cs, using chat. This is my code ( just the part where i want to execute script.cs )
if(%msg $= "#bot exec script.cs"){
exec("Add-ons/client_bot/script.cs");
commandToServer('messageSent',"ChatBot: Executed script.cs");
}
That gives me the following error (part where it gives the ##)
exec("Add-ons/client_bot/script.cs");
commandToServer(##'##messageSent',"ChatBot: Executed script.cs");
If I remove the exec(""); client.cs loads normally.
So can somebody help with this?
I need something that executes console commands using client.cs, because I use exec("Add-ons/client_bot/client.cs"); myself when I want to test my addon