Jump to content

Unknown parent error

Closed 1.1.0 1.2.0

MTriper
MTriper

Posted

Just watch the video.

 

using System.Collections.Generic;
using Oxide.Core.Plugins;

namespace Oxide.Plugins
{
    [Info("SSTest", "MTriper", "1.0.0")]
    class SSTest : RustPlugin
    {
        [PluginReference]
        Plugin SimpleStatus;

        private void OnServerInitialized()
        {
            SimpleStatus.Call("CreateStatus", this, "SSTest.Drop", "0.42 0.13 0.09 1", "Title", "0 0 0 1", "Text", "1 1 1 1", "assets/icons/close.png", "1 0.24 0.1 1");
            SimpleStatus.Call("CreateStatus", this, "SSTest.Give", "0.34 0.4 0.26 1", "Title", "1 1 1 1", "Text", "1 1 1 1", "assets/icons/picked up.png", "0.65 1 0.02 1");
        }

        [ChatCommand("tt1")]
        void TEST1(BasePlayer player)
        {
            SimpleStatus.Call("SetStatus", player.userID, "SSTest.Drop", 20);
            SimpleStatus.Call("SetStatusProperty", player.userID, "SSTest.Drop", new Dictionary<string, object>
            {
                ["title"] = "Test title",
                ["text"] = "-1"
            });
        }

        [ChatCommand("tt2")]
        void TEST2(BasePlayer player)
        {
            SimpleStatus.Call("SetStatus", player.userID, "SSTest.Give", 4);
            SimpleStatus.Call("SetStatusProperty", player.userID, "SSTest.Give", new Dictionary<string, object>
            {
                ["title"] = "Test title",
                ["text"] = "+1"
            });
        }
    }
}

 

Mr01sam

Posted

Yes that is a little glitch that will sometimes appear in the F1 console, it's completely harmless, maybe I will find a fix in the future, but it's low priority at the moment.

MTriper

Posted

I was just informing you of a problem. Please fix it when you have time 🙂

Mr01sam

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.2.0

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
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.7k
Marketplace sales
Payments
3.3m
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.