Jump to content

Failed compiling

Pending 1.0.6

r4m
r4m

Posted

Failed compiling 'AdminAnon.cs':
  1. Argument 3: cannot convert from 'Facepunch.StringView[]' to 'string[]' [CS1503]
     (AdminAnon 82 line 298)

r4m

Posted

Sukor

Last visited

Sunday at 03:43 PM

Duke23er

Posted

Hello, since there was no response regarding this issue, I have fixed it myself.

I am using Carbon instead of Oxide. Here is my solution for it (Use at your own risk.):

  1. Open the AdminAnon.cs file in your plugins folder by using an editor (e.g., Notepad++).
  2. Copy the following lines and use them to replace lines 296–306 of your AdminAnon.cs file:
        [ConsoleCommand("aa")]
        [ChatCommand("aa")]
        private void ccmdAdminAnon(ConsoleSystem.Arg arg)
        {
            string[] convertedArgs = System.Array.ConvertAll(arg.Args, x => x.ToString());
            cmdAdminAnon((BasePlayer)arg.Connection.player, arg.cmd.FullName, convertedArgs);
        }

        private void cmdAdminAnon(BasePlayer player, string command, string[] args)
        {
            if (!CanAccessAdminAnonCommand(player))
            {
                player.ChatMessage(Lang(PluginMessages.NoPermission, player.UserIDString));
                return;
            }

That`s it.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.2m
Total downloads
Customers
12.3k
Customers served
Files Sold
173.8k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.