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 🙂

  • Like 1
Mr01sam

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.2.0

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • 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.