[DOUBLEPOST=1470258566][/DOUBLEPOST]error codeCode:using Oxide.Core.Libraries.Covalence;namespace Oxide.Plugins { [Info("EpicPlugin", "Unknown", "1.0.0")] [Description("A basic chat command")] class CsharpTest : CovalencePlugin { protected override void LoadDefaultConfig() { PrintWarning("Creating a new configuration file"); Config.Clear(); Config["wipedate"] = "DATE"; SaveConfig(); } [Command("WipeInfo")] void TestCommand(IPlayer player, string command, string[] args) { player.Reply(Config["wipedate"]); } [Command("WipeChangelast")] void wipecmd(IPlayer player, string command, string[] args) { Config["wipedate"] = args[0]; SaveConfig(); player.Reply("The wipe date is " + Config["wipedate"] + " !"); } } }
(22:08:53) | [Oxide] 22:02 [Error] CsharpTest.cs(23,32): error CS1503: Argument `#1' cannot convert `object' expression to type `string'
Why am i getting no output from this?
Discussion in 'Rust Development' started by Serenity 3, Aug 3, 2016.
-
Try replacing:
with:Code:player.Reply(Config["wipedate"]);
Code:player.Reply(Config["wipedate"].ToString());
-
Wulf Community Admin
I'd highly recommend setting up a project in Visual Studio, it will give you insight and answers to most of your questions.
-
thanks i will give it a go
