RECV: ADDCONSOLE % Add-Ons/Script_ClearSpam/server.cs (7): Unknown command getPlayerName. RECV: ADDCONSOLE % Object AutoClearSpamBot(4294) AutoClearSpamBot -> ScriptObject -> SimObject
function AIConnection::getPlayerName(%this){ return %this.name;}
Define aiConnection::getPlayerName. Do something like this:Code: [Select]function AIConnection::getPlayerName(%this){ return %this.name;}
RECV: ADDCONSOLE % Add-Ons/Script_ClearSpam/server.cs (7): Unknown command getPlayerName.
That is a blocked function, even on AiClients and AiConnections.
In that case, switch it back to a ScriptObject and define function ScriptObject::getPlayerName(%this) { return %this.name; }